HTML selectbox List size count


Is it possible to control the selectbox dropdown size? Actually a property called <strong>SIZE</strong> is already there. But my requirement is, when I click that select box, options are populating, in that list can I control the size..


try this. I think this is what you are looking for.

<select name="select1" onmousedown="if(this.options.length>5){this.size=5;}" onchange="this.size=0;" onblur="this.size=0;" style="position: absolute"> <option>a</option> <option>b</option> <option>c</option> <option>d</option> <option>e</option> <option>f</option> <option>g</option> <option>h</option> <option>i</option> <option>j</option> <option>k</option> <option>l</option> </select>


using this you will be able to limit the size.

<select name="select" id="select" size="2" > <option>a</option> <option>b</option> <option>c</option> <option>d</option> <option>e</option> </select>


  • catching multiselect values in select box
  • Form custom fields validation angular 2
  • Ant Select closes dropdown
  • jQuery Setting an option on a select box
  • MYSQL: How to find player_id from surname?
  • Parse Javascript Array
  • How may I explicitly define the datatype of a Google Charts DataTable column after it has been creat
  • How to get the location header in Google Apps Script
  • How to create L lists of n non-zero random decimals where each list sums to 1.0?
  • How can i use Django smart select to filter ManyToManyField?
  • How to run requests.get asynchronously in Python 3 using asyncio?
  • How to notify a specific thread in Java
  • Redis under Classic ASP(VBScript)
  • Client side validation mvc dropdown
  • Creating a DropDownList
  • ListItem.Attributes.Add not working
  • Ajax calls do not work in IE unless you fiddle with security settings
  • Keep this build forever option - Jenkins
  • How to clear text inside text field when radio button is select
  • Change multiple background-images with jQuery
  • Android screen density dpi vs ppi
  • Nant, Vault & Windows Integrated Authentication
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Deleting and Updating values from a cusrsor adapter
  • Bug in WPF DataGrid
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • Modifying destination and filename of gulp-svg-sprite
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Change an a tag attribute in JavaScript based on screen width
  • How to show dropdown in excel using jrxml (jasper api)?
  • ORA-29908: missing primary invocation for ancillary operator
  • jquery mobile loadPage not working
  • jQuery tmpl and DataLink beta
  • How can I estimate amount of memory left with calling System.gc()?
  • How to get next/previous record number?
  • Data Validation Drop Down Box Arrow Disappearing
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • How do you join a server to an Active Directory (domain)?
  • How does Linux kernel interrupt the application?