Top "Html-select" questions

An HTML user interface element for choosing one or more option(s) from a finite collection of options.

Height of an HTML select box (dropdown)

Can someone confirm that its not possible to change the height of a dropdown that is shown when you click …

html html-select
How to clear exisiting dropdownlist items when its content changes?

ddl2 populates based on ddl1 selected value successfully. My issue is the data that is already present in ddl2 does …

asp.net vb.net data-binding sqldatasource html-select
<SELECT multiple> - how to allow only one item selected?

I have a <SELECT multiple> field with multiple options and I want to allow it to have only …

html html-select
HTML Form: Select-Option vs Datalist-Option

I was wondering what the differences are between Select-Option and Datalist-Option. Is there any situation in which it would be …

html html-select forms html-datalist
Getting an option text/value with JavaScript

Answer: var option_user_selection = element.options[element.selectedIndex].text I am trying to build a form that fills in …

javascript html forms html-select
How to get selected value of a html select with asp.net

I have code below: <select id="testSelect"> <option value="1">One</option> <option value="2"&…

asp.net html html-select
How to get equal width of input and select fields

On the form, I have one select and two input fields. These elements are vertically aligned. Unfortunately, I can't get …

html css html-select border-box
Change <select>'s option and trigger events with JavaScript

How can I change an HTML <select>'s option with JavaScript (without any libraries like jQuery), while triggering …

javascript html dom html-select dom-events
Line Break in HTML Select Option?

Can I have a two line text in an html select option? How?

html html-select
How do you get the currently selected <option> in a <select> via JavaScript?

How do you get the currently selected <option> of a <select> element via JavaScript?

javascript html html-select