Posted By

benrasmusen on 08/06/10


Tagged

ajax submit


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Basic jQuery AJAX Submit


 / Published in: jQuery
 

basic ajax submit

  1. $.ajax({
  2. url: $(this).attr('action') + '.json',
  3. data: $(this).serialize(),
  4. type: $(this).attr('method'),
  5. dataType: "json",
  6. success: function(data) {
  7.  
  8. }
  9. });

Report this snippet  

You need to login to post a comment.