Author: dude9er | Posted on: 1/22/2009 6:25:19 PM | Views : 276

 I am trying to Disable a textbox based on which radio button is clicked. The Radio btns are  GroupName="website", if the user answers yes to the question the textbox allows text, if the user answers NO the textbox is disabled.
 I am using this bit of  JS code to enable and disable the textbox:
"javascript" type="text/javascript">
function EnableDisableTextBox(rbtntext) {
var txt = document.getElementById("url");

if (rbtntext == 'No') {
txt.disabled = true;
txt.value = "";

}
if (rbtntext == 'Yes') {
txt.disabled = Go to the complete details ...