Guest User

Untitled

a guest
Apr 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // complete line:
  2. <button type="submit" id="btn" class="btn-default" data-id="<?php echo $post_id; ?>" onclick="add_comment(event);">Comment</button>
  3.  
  4. function add_comment(e) { // whatever you wanna name it, e has to be the same
  5. e.preventDefault(); // as this e
Add Comment
Please, Sign In to add comment