How to add an action on the Submit botton?
-
I want to add this action on Comment Submit Botton: onclick=”myfunction()”
I guess this can be done by editing the theme’s comment.php file, right?
In the comment.php file, I find the section about the Submit botton, the code is like this:
<div id="submitbox"> <input name="submit" type="submit" id="submit" class="button" value="<?php _e('Submit Comment', 'mystique'); ?>" /> ..... </div>
May I ask a peice of code to apply myfunction() on this Submit Botton?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add an action on the Submit botton?’ is closed to new replies.