Forum Moderators: open
given HTML:
<input id='btnTglDiv' type='button' value='toggle div' onClick='btnTglDiv_onClick()'>
<DIV id='divAction'>
Name: task 1
<P>Desc: do this, this means that, etc...</p>
<input id='btn1' type='button' value='turn knob'>
<input id='btn2' type='button' value='open door'>
<div>
given JS:
<script type="text/javascript">
function btnTglDiv_onClick(){
alert("hi");
divAction=document.getElementById('divAction');
divAction.disabled=true;
alert("bye");
}
//
</script>
my JS back ground: I've been out of the JS world since 1.0, so I'm very impressed with all it can do now, and am updating my skills.
grimguin
well have a great one,
cheers!
gg
FORM, DIV, and SPAN do not have a disabled property, nor should they propigate the disabled property to their children.
PS For everyone researching this from the IE mindset:
Don't get to dependant on non-standard technology. After a quick discussion with a few senior coder-types I realize that to automate this kind propigation might wrongly assume what the developer intends. So, eventhough IE propigates the disabled property to the children of FORMs, DIVs, and SPANs; it could produce undesired results... even ugly web pages rendering differently in different browsers. [gasp]
thanks for you quick response and patience