Does anyone knows how to remove multiple option
s from form drop down? I want to read data from database, and depending on its value remove some option
s.
<select name="year">
<option value="1">First year/option>
<option value="2">Second year</option>
<option value="3">Third year</option>
</select>
After I read data from the database, I would like to remove some values based on the data's value. So if the data value is 3
, I want to remove values 1
and 2
from thr drop down list..