RE: Disable the text box when a particular item is
<INPUT ... onFocus="if (this.form.TheSelect.selectedIndex==3) this.form.TheSelect.focus();"><BR><BR>Change the 3 there to match your actual <SELECT>. The options are numbered starting at ZERO, not at one.<BR><BR>That works in all browsers I know of.<BR><BR>
...as I keep saying. NS 4 doesn't have either the "disabled" or "readonly" attributes for form fields.<BR><BR>[And he said he wanted it based on a <SELECT>ed option, not a checkbox, didn't he?]<BR><BR>Oh...and one more quibble: Okay, so now the user unchecks the checkbox. Where's the code to re-enable the text?<BR><BR>
and that would be another one line but I wanted the poster to get to that himself.<BR><BR>Yes Bill, you rightly pointed out that it will not work with Netscape 4.0 but do we still need to worry about Netscape 4.0?
...the short answer is "Yes, if you have an ecommerce site that makes enough profit on the NS customers to justify the extra coding expense." A million or two dollars in profits per year can easily justify the effort.<BR><BR>No, you do NOT need one more line. You need a couple fewer lines.<BR><BR><INPUT Type=Checkbox onClick="this.form.textfield.disabled=this.checked ;"><BR><BR>Nasty and sneaky, aren't I?<BR>