Basic jQuery AJAX Submit


/ Published in: jQuery
Save to your folder(s)

basic ajax submit


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.