Radio button not firing an event for javascript like check box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Mason
    New Member
    • Dec 2010
    • 1

    #1

    Radio button not firing an event for javascript like check box

    Hi there

    I have some fancy mootools javascript hooked up to my form controls to show and hide the relevant sections in the current form. For instance, checking the shareholder box automatically shows the shares textbox. Unchecking hides the box.

    This all works fine except when it comes to the radio buttons. You have to select the button, then click off of it to fire the event.

    The same code works fine in Firefox.

    Any ideas?

    Thanks for your help.

    Regards

    Rob
  • JKing
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    Can you post the code?

    Also when you say "the same code works fine in Firefox" does that mean this issue is only occurring on a particular browser? If so what browser?

    Comment

    • rnd me
      Recognized Expert Contributor
      • Jun 2007
      • 427

      #3
      use onclick instead of onchange...

      Comment

      Working...