hi all,
i want to get the option selected from an input.
i mean i have this in the HTML code :
<select name='type_lang'>
<option value='0'>All</option>
<option value='1'>None</option>
<option value='2'>Arabic</option>
<option value='3'>Brazilian</option>
</select>
When i click a button, i want to call a script that tells me which option has been selected. How can i do ? Am i forced to test each time :
if (myform.type_lang[0].checked==true) ...
???
or is there a lighter way to perform this ??
thanks in advance
best regards,
elise
Best regards,
Elise
i want to get the option selected from an input.
i mean i have this in the HTML code :
<select name='type_lang'>
<option value='0'>All</option>
<option value='1'>None</option>
<option value='2'>Arabic</option>
<option value='3'>Brazilian</option>
</select>
When i click a button, i want to call a script that tells me which option has been selected. How can i do ? Am i forced to test each time :
if (myform.type_lang[0].checked==true) ...
???
or is there a lighter way to perform this ??
thanks in advance
best regards,
elise
Best regards,
Elise