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
Post a Comment