function get_clients var url Ajax do var ac some_id val var customerid

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
function get_clients() {
var url = "Ajax.do";
var ac = $("#some_id").val();
var customerid = $("#other_id").val();
$.ajax(
{
type: 'POST',
url: url,
data: {id: id, customerid: customerid},
success: function(data) {
// Here you can split the string that
// comes from response and insert in other html elements
}
}
)
return false;
}