Forum Moderators: open
disabled attribute so you may want to investigate further.
<form>
<fieldset>
<label for="ena">Enable</label><input type="radio" id="ena" name="ed" value="Enable"/>
<label for="dis">Disable</label><input type="radio" id="dis" name="ed" value="Disable"/>
</fieldset>
<fieldset>
<input type="text" id="some" name="something">some</input>
<input type="text" id="thing" name="something" disabled="disabled">thing</input>
</fieldset>
</form>
<script type="text/javascript">
function enable(){
document.getElementById("ena").onclick=function(){
document.getElementById("thing").disabled=false;
}
}
function disable(){
document.getElementById("dis").onclick=function(){
document.getElementById("thing").disabled=true;
}
}
window.onload = function(){
enable();
disable();
}
</script>