jQuery ajax([opt])
$("#example_j button").click(function(){ var aaa = $("#example_j input:first").val(); var bbb = $("#example_j input:last").val(); $.ajax({ type: "POST", url: "ajax/load/post.php", data: ({a : aaa, b : bbb}), success: function(data){$("#example_j span").text("Выполнено! " + data);} }); |
jQuery ready()
|
jQuery ajax
|
Cheatography
https://cheatography.com
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
More Cheat Sheets by media_slave