Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > select tag attribute

Reply
Thread Tools

select tag attribute

 
 
Charlie
Guest
Posts: n/a
 
      09-07-2003
If memory serves me, there is a way to limit the size of a select box using
html (of course, my memory ain't what it used to be). I have a drop down
select box containing 25 items. I would like to have it set up where, when
the customer clicks the arrow expanding the options, only 10 would appear
and the remainder be accessable by scrolling the select box. Can anyone here
point me in the right direction?

Thanks,
Charlie


 
Reply With Quote
 
 
 
 
Nico Schuyt
Guest
Posts: n/a
 
      09-08-2003
Charlie wrote:
> If memory serves me, there is a way to limit the size of a select box
> using html (of course, my memory ain't what it used to be). I have a
> drop down select box containing 25 items. I would like to have it set
> up where, when the customer clicks the arrow expanding the options,
> only 10 would appear and the remainder be accessable by scrolling the
> select box. Can anyone here point me in the right direction?


Should be the size-attribute (http://www.w3schools.com/html/attr_select.asp)
Doesn't work in IE5.5 however(?)
Nico


 
Reply With Quote
 
 
 
 
Sean Jorden
Guest
Posts: n/a
 
      09-08-2003
"Charlie" <> wrote in
news:atO6b.134596$xf.35438@lakeread04:

> If memory serves me, there is a way to limit the size of a select box
> using html (of course, my memory ain't what it used to be). I have a
> drop down select box containing 25 items. I would like to have it set
> up where, when the customer clicks the arrow expanding the options,
> only 10 would appear and the remainder be accessable by scrolling the
> select box. Can anyone here point me in the right direction?
>


You can set the size of a select form element like this:

<select size="10" >

but that will change it from a dropdown to a list 10 lines high.

Otherwise, you are dependant on the whims of the browser/operating system
combination, which vary widely.
 
Reply With Quote
 
Hywel Jenkins
Guest
Posts: n/a
 
      09-08-2003
Charlie wrote:
> If memory serves me, there is a way to limit the size of a select box using
> html (of course, my memory ain't what it used to be). I have a drop down
> select box containing 25 items. I would like to have it set up where, when
> the customer clicks the arrow expanding the options, only 10 would appear
> and the remainder be accessable by scrolling the select box. Can anyone here
> point me in the right direction?


http://www.w3.org/TR/html401/interact/forms.html#h-17.6

--
Hywel

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[XSLT] Select node by attribute with value from an attribute of its self Stefan_W XML 1 11-05-2008 10:50 AM
Select text within a div tag by clicking on content of div tag or a button? visu Javascript 4 11-22-2006 06:25 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Select text within a div tag by clicking on content of div tag? M Wells Javascript 0 10-06-2004 11:04 AM
XHTML: <select> tag and numeric name attribute aragon HTML 0 02-16-2004 06:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57