Hello everyone! Before me there was such a task:
1) Given:
<select id="selectId"> <option value="value1" selected="selected">value1</option> <option value="value1" style="display:none;">value2</option> <option value="value1" style="display:none;">value3</option> </select>
Find: js function, which would take one <option>
in its meaning and change its style. You cannot assign a name or id to options.
2) style="display:none;"
for the <option>
does not plow in IE and Opera. I have not even the slightest idea why ...
I would appreciate any suggestions =)