• Resolved filias

    (@filias)


    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)
  • Thread Starter filias

    (@filias)

    I was able to do this using a plugin called CSS and Javascript Toolbox. I can put a javascript function in this plugin, check which page the function is for, and then go to that page and call the function with something like “onclick=”startfunction()” where startfunction is the name of the function.

    It’s working well.

Viewing 1 replies (of 1 total)
  • The topic ‘Event Handlers (like onkeyup) in WordPress’ is closed to new replies.