JQuery call to .php file and passing three arguments
I want to call a .php file and pass three arguments so that the .php files GETS from the query string. I am new to JQuery. Can someone illustrate how to call the .php fil开发者_如何学运维e using JQuery?
Check the jQuery documentation. They provide a few examples that should get you started. The example you're most interested in looks something like this:
$.get("myphpfile.php",
{ param1: "John", param2: "2pm", param3: "Wed" },
function(data){
alert("Data Loaded: " + data);
}
);
精彩评论