Menu
dang javascript, how does one set a value in a dropdown listbox?
[CODE]
document.frmExam.weightAppliedTo.options[0].selected = true;
[CODE]
<select name=’weightAppliedTo’>
<option value=” Selected></option>
<option value=’q’>This Quarter</option>
<option value=’s’>This Semester</option>
<option value=’y’>This Year</option>
</select>
The first value in my listbox is “” and I want to reset it to that value in a function. What the heck is wrong with the syntax above?