Posted by samtheory2718 on February 11, 2012 at 5:46am
I have a form with a radios type, but I want one of the choices to be greyed out depending on a conditional. Is there a way to do this?
I have a form with a radios type, but I want one of the choices to be greyed out depending on a conditional. Is there a way to do this?
Comments
You could simply do this with
You could simply do this with some jquery or have you had a look at the Conditional Fields module?
I haven't looked at this
I haven't looked at this module, but just to clarify, it's the greying out of a radio button that I'm having questions with - how would I use jquery to do this?
Disables:
Disables:
$("#button").attr("disabled", "disabled");Enables:
$("#button").removeAttr("disabled");Where the button has the css id #button