jQuery UI Widgets Forums Editors CheckBox, RadioButton Requiring different fields on radio

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Requiring different fields on radio #50483

    ToddHaddaway
    Participant

    I have a form that contains 2 radio buttons. If button A is selected, then I want to show AND require fields 1 and 2. If button B is selected, then I want to show AND require fields 3 and 4 (not showing or requiring fields 1 and 2). Can this be done with jqWidgets? If so, would someone be so kind as to provide same code?

    Thanks so much!

    Todd

    Requiring different fields on radio #50508

    Dimitar
    Participant

    Hello Todd,

    To call custom functions on jqxRadioButton selection, bind to the checked event, i.e.:

    $('#jqxRadioButton').on('checked', function (event) {
        // Some code here. 
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.