jQuery form plugin success callback not being called
I'm using the jQuery form plugin and when I use ajaxSubmit
, the submission does happen (I checked for the 200 response) but the success callback is not called because I'm not seeing the alert()
. Does 开发者_开发问答anyone have any ideas as to why this is happening?
$("#edit-form form").submit(function() {
$(this).ajaxSubmit({
success: function(data){
alert("here")
},
method: "POST",
datatype: "json",
forceSync: true
});
return false;
});
EDIT: forgot to mention that the form is in an iframe
(idk if that'll make a difference or not) created by a fancybox.
精彩评论