hi all,
[HTML]
<select name="cmbDepart ment" id="cmbDepartme nt" style="width:12 0px">
<option >winding</option>
<option>Testing </option>
</select>
[/HTML]
javascript
An empty alert is displayed in IE, but works fine in FF. what will be the problem? thanx in advance.
[HTML]
<select name="cmbDepart ment" id="cmbDepartme nt" style="width:12 0px">
<option >winding</option>
<option>Testing </option>
</select>
[/HTML]
javascript
Code:
var strDepta=document.getElementById('cmbDepartment'); var strDept=strDepta.options[strDepta.selectedIndex].value; alert(strDept);
Comment