6

I have a <select> with a lot of <option>'s. Is there any way to limit the height of the displayed <select> when opened?

Josh Smith
  • 14,110
  • 18
  • 68
  • 115
  • possible duplicate of [Height of an HTML select box (dropdown)](http://stackoverflow.com/questions/570642/height-of-an-html-select-box-dropdown) – Brad Mace Dec 16 '10 at 03:48
  • 3
    @bemace, it may be a dupe, but I didn't find that initially myself (and I always check the way I typed the question). I personally think dupe questions that rephrase in a way that could help someone else find it (like me!) and yet lead to the original are okay. – Josh Smith Dec 16 '10 at 03:50

1 Answers1

11

the size limit is controlled by the browser and not something you can alter.

See this answer: Height of an HTML select box (dropdown)

Community
  • 1
  • 1
scunliffe
  • 60,441
  • 24
  • 124
  • 159
  • 1
    Yeah, this was just pointed out to me in #jquery. Thanks for the quick answer, though! Will accept this in 6 minutes. – Josh Smith Dec 16 '10 at 03:48