tags:

views:

739

answers:

4

I have an html select element which I would like to style for print so that it just looks like the selected text. How can I hide the drop down arrow?

+1  A: 

One idea: for the print operation, swap the combo box with a label control.

Matt Hamsmith
A: 

You could provide the selected text value next to the dropdown and hide it via CSS. Then use a print stylesheet to show the text and hide the dropdown when printing.

Tom
A: 

You can't.

There is nothing in the standards that specifies that the select element has to have an arrow to indicate to the user that it has options to choose from, or how those options are shown. As those visual elements are not defined, there is naturally nothing defined for changing them.

You just have to display a different element when printing.

Guffa