windows - How can i make a drop down box show different characters -
how can make drop down box show list of options show 1 character when closed
for example
the drop down box show
a horse b cat c dog d fish
and when drop down box closed show first character.
any appreciative.
you try this:
<select style="width:40px;" onblur="this.style.width='40px';" onfocus="this.style.width='auto';" onchange="this.style.width='40px';" > <option>a cat</option> <option>b dog</option> <option>c horse</option> <option>d hippopotamus</option> </select>
Comments
Post a Comment