ThLoser

Untitled

Jul 9th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     tinyMCE.triggerSave();
  2.     $("#form").submit(function(event) {
  3.         var form = this;
  4.         event.preventDefault();
  5.         var poster = $.post('addnews.php', $(this).serialize());
  6.         poster.done(function(data) {
  7.             $(".result").html(data);
  8.             form.reset();
  9.         });
  10.     });
Advertisement
Add Comment
Please, Sign In to add comment