I've seen a lot of members 开发者_开发问答of this community recommend something like this:
$('#form').submit(function(e){
$.ajax({
url:"script.php",
type: 'POST',
success:function(data){
// data returned from php
}
});
return false;
});
It seems lightweight, easy to understand and easy to use.
My question: how is the jquery form plugin useful, if this all can be done that easily?
精彩评论