Advertisement
Guest User

Untitled

a guest
Jan 18th, 2012
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. jQuery('.submit').click(function(){
  2. var str = $("#ajaxForms").serialize();
  3. // If you realllly. want a parameter serialize, uncomment the following line
  4. // str += '&serialize=' + encodeURIComponent(str);
  5. str += '&action=myajax-submit';
  6. jQuery.post(MyAjax.ajaxurl, str,
  7. function(response) {
  8. alert('Got this from the server: ' + response);
  9. }
  10. });
  11. return false;
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement