Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery('.submit').click(function(){
- var str = $("#ajaxForms").serialize();
- // If you realllly. want a parameter serialize, uncomment the following line
- // str += '&serialize=' + encodeURIComponent(str);
- str += '&action=myajax-submit';
- jQuery.post(MyAjax.ajaxurl, str,
- function(response) {
- alert('Got this from the server: ' + response);
- }
- });
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement