I have an html <select> object that I want to make readonly when a certain hidden field's value is not null.
I've tried this:
<select name=dropdown onfocus="makeReadonly(document.thisForm.theNum.value)">
function makeReadonly(theNum) {
if (theNum != "") {
document.thisForm.dropdown.blur();
}
}
But the dropdown can still be changed.
Any ideas?
thanks
Set the gearshift for the high gear of your soul, you've got to run like an antelope, out of control.
I've tried this:
<select name=dropdown onfocus="makeReadonly(document.thisForm.theNum.value)">
function makeReadonly(theNum) {
if (theNum != "") {
document.thisForm.dropdown.blur();
}
}
But the dropdown can still be changed.
Any ideas?
thanks
Set the gearshift for the high gear of your soul, you've got to run like an antelope, out of control.