Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i have a web form consist of follow

Status
Not open for further replies.

tl2003

IS-IT--Management
Mar 31, 2003
1
MY
i have a web form consist of following elements:

<form name=&quot;form1&quot;>
<input type=&quot;text&quot; name=&quot;txtName&quot;>
<input type=&quot;Button&quot; name=&quot;Choose&quot; value=&quot;Choose&quot; OnClick='ChooseDetails();'>
<input type=&quot;Button&quot; name=&quot;Add&quot; value=&quot;Add&quot;>
</form>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function ChooseDetails() {

document.form1.Add.disabled = true;
document.form1.txtName.disabled = true;
}
</SCRIPT>

i would like to disable the textbox and the &quot;Add&quot; button after i have clicked the &quot;Choose&quot; button.
everything work fine in IE5 & netscape 6, but it not works in Netscape 4 :(
hope that u can help me.... thanks!!
 
Netscape lower versions doesa not support disabled attribute...

One Option modify ur scripts to blur the text field when the user is clicking on it.

else
submit to teh server and come back with READONLY INPUT TYPE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top