About 515,000 results
Open links in new tab
  1. JavaScript Lesson 21: Creating a Selection List

    A selection list lets users choose an item from a list of items. For example, online shopping malls such as Amazon.com or auction sites such as ebay.com let you select categories of products …

  2. How to add Drop-Down list (<select>) programmatically?

    I want to create a function in order to programmatically add some elements on a page. Lets say I want to add a drop-down list with four options: <select name="drop1" id="Select1"> <op...

  3. Get selected value in dropdown list using JavaScript

    Jul 24, 2022 · The following code exhibits various examples related to getting/putting of values from input/select fields using JavaScript. Source Link. Working Javascript & jQuery Demo

  4. HTML DOM Select Object - W3Schools

    Select Object. The Select object represents an HTML <select> element. Access a Select Object. You can access a <select> element by using getElementById():

  5. How to Create a Multiple Selection List Box in JavaScript for

    You can use the JavaScript select object in a powerful way for your HTML5 and CSS3 programming needs. To make multiple selection work, you have to make a few changes to …

  6. Selectable list - The Modern JavaScript Tutorial

    Create a list where elements are selectable, like in file-managers. A click on a list element selects only that element (adds the class .selected ), deselects all others. If a click is made with Ctrl ( …

  7. How to select a value in a select dropdown with JavaScript?

    easiest way is to just use this. myselect is name of your dropdown banana is just one of items in your dropdown list. for ( var i = 0; i < s.options.length; i++ ) { if ( s.options[i].value == v ) { …

  8. JavaScript select Element - JavaScript Tutorial

    To select a <select> element, you use the DOM API like getElementById() or querySelector(). The following example illustrates how to get the index of the selected option: const sb = …

  9. HTML DOM Select options Collection - W3Schools

    The options collection returns a collection of all <option> elements in a drop-down list. Note: The elements in the collection are sorted as they appear in the source code. Browser Support

  10. Handling of select-list items in javascript - Thimble Opensource

    Handling of select-list items in javascript. How to get a selected value from <select> using DOM. In the piece of javascript code below, you've got in the "value" variable the actual selected …

Refresh