Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('button[id="signup"]').click(function(){
  2. var serializedData = $('form[id="signup"]').serializeObject();
  3.  
  4. alert(serializedData);
  5.  
  6. $.ajax({
  7. type: 'POST',
  8. url: 'php/test.php',
  9. data: serializedData,
  10. success: function(data) {
  11. $("#response").html(data)('success', data);
  12. }
  13. });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement