I\'m using jQuery\'s $.ajax function to submit a form, which works, but the success is where I\'m having my problem. Here is my code:
$.ajax
$(\"#form\
if(response.indexOf("success")!=-1){ } Try this method indexOf()