Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#btnsubmit').click(function(){
  2.     var author = $('#author').val();
  3.     var email = $('#email').val();
  4.     var comment = $('#comment').val();
  5.     var postData = {
  6.         author: author,
  7.         email: email,
  8.         comment: comment
  9.     };
  10.     $.post('mailcode.php', postData,function(data,status){
  11.          $('#emailresponse').html("Thank you!");
  12.     });
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement