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 ); } }); }); Quote 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 () { Quote Link to comment https://forums.phpfreaks.com/topic/227330-beforesend/#findComment-1173121 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.