1 Reply Latest reply on Jul 6, 2006 7:29 AM by derobinson

    Radio button state

    Level 7
      Hi Guys,

      Just to check, How do i check the state of radio buton through script.

      I have two sets of radio button, I would like user to go next scene by
      pressing next button, only when he/she has clicked on the both the sets.

      Thanks a lot in advance
      regards
      b


        • 1. Re: Radio button state
          derobinson Level 1
          For an individual radioi button, you can just check its "selected" property, so...

          if (myRadio.selected) {
          .....
          }

          However, from a design standpoint, radio button sets usually have a default selection (so one button in the set is usually preselected), so perhaps radio buttons aren't the best choice for your purpose. Just a suggestion!

          Cheers!