Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // complete line:
- <button type="submit" id="btn" class="btn-default" data-id="<?php echo $post_id; ?>" onclick="add_comment(event);">Comment</button>
- function add_comment(e) { // whatever you wanna name it, e has to be the same
- e.preventDefault(); // as this e
Add Comment
Please, Sign In to add comment