We help IT Professionals succeed at work.

Number of options in Select tag

346 Views
Last Modified: 2013-11-19
How to limit the number of options that shows in when i expand the select tag (click on its arrow)
I have a select tag contains 100 options, i want it to show just 5 options when i click on its arrow and have a scroll inside t see the rest of options down.


Thanks,
Comment
Watch Question

Commented:
<select name="select" size="5" id="select">

Author

Commented:
this will increase the size of the select its self not limiting the number of options that shows when i click on the select button
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
It can be Done using AJAX

Author

Commented:
how?
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.