I have a really simple question.
I have a dropdown. It contains text that is wider than its basic size. In IE it won't be wide enough to see the whole text. The solution is, when I click on the dropdown, I increase the size to what I need.
onfocus="this.style.width='320px';"
and will go back to its original size after it has lost focus:
onblur="this.style.width='150px';"
And now the problem: If I click on the input, the size will be increased, but it will not open down the list immediately. It needs an other click to do that.
How can I increase the size, and open the list at the same time?
EDITED
So guys, the problem is, when you clicked on the dropdown, the size changed, and under IE8 the options won't shown. There wasn't dropped down. This is what I need. I don't want to do it on hover.
jQuery and other libraries are not option. I have to do with native JS.