J
John
Hi
<form nam="country" ...
<select name="industy" ...
<option ... selected> ... </option>
<option ...
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?
Regards
John
<form nam="country" ...
<select name="industy" ...
<option ... selected> ... </option>
<option ...
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?
Regards
John