facebook

Please help me with Radio Button Control

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #322975 Reply

    RezProgramer
    Member

    If I am correct this is what is used to check if the radio button is checked $(‘input[name=”radio-group1″]:checked’).
    When I try to use this for example $(‘#m1-nameofpage-nameofbutton-input[name=”radio-group1″]:checked’) or the other hundred ways i have tried it still won’t work. I have several groups of radio buttons and I need to have code for each button so if I select the button it will only run code for that button.

    here is a small example of what I need.
    If radio button band1 is check do something.
    If radio button band2 is check do something else.

    var Band1 = $(‘input[name=”radio-group1″]:checked’)
    var Band2 = $(‘input[name=”radio-group1″]:checked’)
    var Band3 = $(‘input[name=”radio-group1″]:checked’)

    Thank You

    #322994

    support-michael
    Keymaster

    @RezProgramer

    > If I am correct this is what is used to check if the radio button is checked $(‘input[name=”radio-group1″]:checked’).

    Yes, I agree. See the screenshot below of a little 2 button radio-group and a couple of js snippets.

    >var Band1 = $(‘input[name=”radio-group1″]:checked’)

    Band1 should be set to the <input> object. Is it not set in your example?
    If no, have you inspected to html to confirm that the group id is correct?

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Please help me with Radio Button Control

You must be logged in to post in the forum log in