I have a select element with more options. The select has the width of the longest option text size. How can I set the select to have the width of the selected option? And when I click the select it should have the same width (of the selected option), but the rest of the options should have the width of the longest option text size.
Anticipated thanks!
EDIT
I've posted a wrong question. Actually I was looking for the easyest method of doing this. CSS / JS / jQuery.