Displaying of a subset of options in a select tag using classes - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:class

Description

Displaying of a subset of options in a select tag using classes

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
select .hide {<!--from   w w  w  . j  ava 2s  . c  o m-->
   display:none;
}
</style> 
 </head> 
 <body> 
  <select> <option>Lorem</option> <option style="display: none;">Lorem</option> <option class="hide">Lorem</option> <option>Lorem</option> </select>  
 </body>
</html>

Related Tutorials