Entry
I want to disable parent form when I open child form. How to do in JS?
Apr 25th, 2003 23:27
Nel MS, mike nap, Nel MS
I'm going to give you a short answer because your question is vaguely
worded.
On a single page, forms cannot be nested. (You cannot have a form
sitting inside another form - forms cannot nest) You can have more than
one forms, sitting seperately from each other:
<form name="form 1">... some form here ...</form>
<form name="form 2">... some form2 here ...</form>
Now, to disable forms, use this example. This assumes that you have a
textbox named theTextboxName:
<input type="button" value="click me to disable!"
onClick="document.theTextboxName.disabled=true">
To enable them, use the same code above BUT change it to
*disabled=false*
Nel MS.