1 Reply Latest reply on Mar 5, 2013 7:45 AM by Justin Warwick

    Enable text box in tabular form


      I have a radio button which has two values (Yes/No) once the value is selected as Yes I need to enable a text box else it should be disabled

      Please let me know how to achieve this ?

        • 1. Re: Enable text box in tabular form
          Justin Warwick
          I'm think you may need to create some fancy custom jquery work here. The magic is that jquery is not just for manipulating style programatically. Once jquery has an HTML DOM node in hand, it can programatically manipulate its program!

          Take a look at the rendered HTML source of your tabular form. You will first need to determine the proper jquery selector that will return the list of all the HTML elements that are the mutual parent to the radio control and the target textbox.
          Now, in a jquery on-document-ready callback function, you would use that selector you determined to register a another call back function ("toggleTextBox(elementID)" lets say) with each of the radio controls' onchange events, and that callback function would perform the actual enable/disable or hide/reveal or whatever when called.