A
A
artem782014-04-06 01:01:40
Opera
artem78, 2014-04-06 01:01:40

Select elements not hiding in Opera 12

This code does not work only in Opera 12 (more precisely 12.13 1734).

<select>
    <option>one</option>
    <option>two</option>
    <option style="display: none;">three</option>
</select>

Using the jquery hide() function doesn't help either.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Lobanov, 2014-04-06
@iiil

For opera, use disabled

<select>
    <option>one</option>
    <option>two</option>
    <option style="display: none;" disabled>three</option>
</select>

A
artem78, 2014-04-06
@artem78

So it becomes unavailable for selection, but you need to hide it altogether.

Y
Yuri Lobanov, 2014-04-06
@iiil

jsfiddle.net/iiil/3p6bS/4
Use remove as an option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question