Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<select> size

Status
Not open for further replies.

jianbo

Programmer
Dec 19, 2001
78
US
Can I set a <select> size as we did in <input type=text> ?
or can I make one option in <select> take two lines?
Thanks!
 
once you set the size to a select you rid the dropdown from it. you can not set a size in the option values though.
so this would result in a box (respectivly not including the cahnce of adding more then the size limit of options. Then the drop arrow is resumed
<select size=&quot;3&quot;>
<option>--
<option>--
<option>--
</select>
verses this with a drop arrow
<select>
<option>--
<option>--
<option>--
</select> ---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top