Event Handlers (like onkeyup) in WordPress
-
I’m trying to use an onkeyup event handler to fill in a second radio button simultaneously as the first radio button is clicked.
I’m using the HTML editor, not the Visual editor, because my page involves lots of PHP. I have the Exec_PHP plugin installed.
Here’s the code I have in one instance:
<input class=\”date1\” type=\”text\” id=\”newdate$counter\” size=\”5\”
maxlength=\”5\” onkeyup=\”document.forms[‘$formnumb1’].orgdate$counter.value=document.forms[‘$formnumb’].newdate$counter.value\” />The meaning of the code is: when one radio button is filled in, fill in the other one.
My problem: WP doesn’t seem to recognize “onkeyup”. Is there a solution to this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Event Handlers (like onkeyup) in WordPress’ is closed to new replies.