jquery - ajax post response statusCode function not invoked -
im using ajax method reason status code return server after submit ignored..
this im reciving server in response
http/1.1 200 ok content-type: text/html; charset=utf-8 content-length: 4241
method:
function submitform() { $.ajax({ url : jquery("#contact-form").attr("action"), type : jquery("#contact-form").attr("method"), data : jquery("#contact-form").serialize(), statuscode : { 200 : (function() { alert("yyyyyyyyaaaaaaaaaaaaa"); }), 400 : (function() { alert("eeeerrrrrrrrrr"); }) } }); }
Comments
Post a Comment