Jump to content

beforeSend


ankhmor

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.