Entry
How can I disable select options on click of a radio button?
Dec 14th, 2004 02:21
Hemant Sudehely, Xixulon Gralgrathor, Sandeep Joshi, Hemant
i think this may solve your problem
function enableTextField() {
var form = document.forms[0];
form.text1.disabled = false;
}
function enableTextField() {
var form = document.forms[0];
form.text1.disabled = true;
}
in my jsppage :
<html:radio property="propertyName" value="radio1"
onfiltered="disableTimeFields()"></html:radio>
<html:radio property="propertyName" value="radio2"
onfiltered="enableTimeFields()"></html:radio>
<html:text property="text1" disabled = "true"/>