HTML CSS examples for CSS Selector:class
Displaying of a subset of options in a select tag using classes
<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>