ankhmor Posted February 11, 2011 Share Posted February 11, 2011 Hi. The script within beforeSend : doesn't work. Still doesn't work even if I remove sucess: . Any ideas? $(document).ready( function () { $("#form_code").submit(function(){ $("#form_code").css("display", "none"); }) $.ajax({ type: "POST", url: "main.php", data: "password=048478", beforeSend: function { alert( "Data Saved:"); }, success: function(msg){ alert( "Data Saved: " + msg ); } }); }); Link to comment https://forums.phpfreaks.com/topic/227330-beforesend/ Share on other sites More sharing options...
.josh Posted February 12, 2011 Share Posted February 12, 2011 beforeSend: function () { Link to comment https://forums.phpfreaks.com/topic/227330-beforesend/#findComment-1173121 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.