javascript - jQuery display none a option in a form -


i want display none option of form.

html:

<option class="level-0" value="top-10-villen-de">top-10-villen</option> 

jquery:

if(jquery('option').attr('value') == 'top-10-villen-de'){     jquery(this).css('display', 'none'); } 

i've issue in if statement can't figure out issue.

can helps me?

thank you.

hiding dropdown option isn't compatible browser.

i've got better option. wrap option span , when need unwrap it

fiddle link : http://jsfiddle.net/xms2uydx/


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -