Subj : Re: disable textbox in Mozilla? To : Steve K From : Brendan Eich Date : Mon Nov 17 2003 03:20 pm Steve K wrote: >"Martin Honnen" wrote in message >news:bpab79$1c11@ripley.netscape.com > > >>Steve K wrote: >> >> >>>trying to get Mozilla 1.6 to gray-out(disable) a textbox seems not to >>>work. For IE it is a simple: >>>document.MyForm.LastName.disabled=1; >>> >>>...but Mozilla just ignores this statement?! >>>Any ideas? >>> >>> >>Next time ask in the JavaScript group on the secure server or in the DOM >>group. >> >> > >hmm, this is a javascript group - I am not wrong here..... > > No, you're in the wrong group. See cross-post, with followup-to: set. This group is for discussion about Mozilla's JS engines, and the JS language. You're asking a DOM question, whose likely answer wouldn't vary if the scripting language in question were VBScript or Python. /be > > > >>Try setting >> document.formName.inputName.disabled = true >>as true is the proper boolean value for disabled and not 1 which is a >>number >> >> > >this fails to work as well - will try a dom group if no one knows... > > > > .