LeighExchange - Free Advertising Network Stock Research at Internet Speed
Dunno about "nam", it might be better to include a *name* attribute.
> > ... > > > Now, in Javascript, I want to change defaulted "selected" to fourth option. > > document.country.industry.options[3].selected=true; > > but I get an error. Is the syntax wrong? Yes, twice. Appart from the form's "nam" property, the select's name is "industy", you are trying to access the form element collection's "industry" property. When posting code, copy and paste a "working" example. The easier you make it for others, the better your chance of getting help. 1 2 3 4 -- Rob
Yes, twice. Appart from the form's "nam" property, the select's name is "industy", you are trying to access the form element collection's "industry" property.
When posting code, copy and paste a "working" example. The easier you make it for others, the better your chance of getting help.
-- Rob