i have a web form consist of following elements:
<form name="form1">
<input type="text" name="txtName">
<input type="Button" name="Choose" value="Choose" OnClick='ChooseDetails();'>
<input type="Button" name="Add" value="Add">
</form>
<SCRIPT LANGUAGE="JavaScript">
function ChooseDetails() {
document.form1.Add.disabled = true;
document.form1.txtName.disabled = true;
}
</SCRIPT>
i would like to disable the textbox and the "Add" button after i have clicked the "Choose" button.
everything work fine in IE5 & netscape 6, but it not works in Netscape 4
hope that u can help me.... thanks!!
<form name="form1">
<input type="text" name="txtName">
<input type="Button" name="Choose" value="Choose" OnClick='ChooseDetails();'>
<input type="Button" name="Add" value="Add">
</form>
<SCRIPT LANGUAGE="JavaScript">
function ChooseDetails() {
document.form1.Add.disabled = true;
document.form1.txtName.disabled = true;
}
</SCRIPT>
i would like to disable the textbox and the "Add" button after i have clicked the "Choose" button.
everything work fine in IE5 & netscape 6, but it not works in Netscape 4
hope that u can help me.... thanks!!