I've googled and I've checked stackoverflow for an answer, but yet I haven't found a proper one. My input regularly contains &
(ampersand) and @
so I would need to escape that variable CN99, how can i do this with jquery?
$("#CompanyNameFilter").focus(function() {
var CN99 = $("#CompanyNameFilter").val();
$.ajax({
url: "clients.php?companyname=" + CN99,
dataType: "html",
success: function(html) {
var div = $("#companyList", $(html)).addClass("done");
$("#companyList").html(div);
}
});
});