In my intranet with WP I need to put a butoon near comment form to insert tipical text comment. Example: button to insert "This task is finished" I try this:
<input type="button" value="Hola" onClick="document.commentform.comment.value += 'hola';">
|
Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
Is that working for you? Please clarify your question. I would rewrite the code as such:
Try that and see if it works. Note the lowercase "C" and the use of DOM-based methods. By the way, this thread in specific to WordPress and probably belongs on StackOverflow. |
|||