Print selected option only - HTML CSS CSS

HTML CSS examples for CSS:Selector

Description

Print selected option only

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">
@media print  {<!--  w  w  w .  j  av a  2s .com-->
   .label {
      visibility:hidden;
   }

}
</style> 
 </head> 
 <body> 
  <span class="label">Lorem ipsum d</span> 
  <select> <option value="2">Lorem ip</option> <option value="3">Lorem ip</option> <option value="4">Lorem ip</option> </select>  
 </body>
</html>

Related Tutorials