Please see if this helps. You should be able to paste this in a .cfm file and see the behavior.
The "disabled" property is an html property, but you can change it in the JavaScript onClick().
--------------------------
<cfform name="myform">
<div style="border:solid 1px red">
<cfinput type="radio" id="radio1" name="name1" value="3">
Do Nothing
<cfinput type="radio" id="radio2" name="name1" value="1"
onClick="alert(this.value)
document.getElementById('r
document.getElementById('r
} else {
document.getElementById('r
document.getElementById('r
}" >
Enable
<cfinput type="radio" id="radio3" name="name1" value="0"
onClick="alert(this.value)
document.getElementById('r
document.getElementById('r
} else {
document.getElementById('r
document.getElementById('r
}" >
Disable </div>
<br />
<div style="border:solid 1px green">
<cfinput type="radio" name="name5" disabled id="radio6" value="0" >
No
<cfinput type="radio" name="name5" disabled id="radio5" value="1">
Yes </div>
<cfinput type="submit" name="btnSubmit" value="Submit">
</cfform>
Main Topics
Browse All Topics





by: _agx_Posted on 2009-06-18 at 09:56:10ID: 24659348
Use bindings to link the visibility to the selected button: og/entry/b indings-to -the-rescu e- changing -an-input
http://www.asfusion.com/bl
Select allOpen in new window