About 170,000 results
Open links in new tab
  1. HTML DOM Select Object - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  2. <select>: The HTML Select element - HTML | MDN - MDN Web Docs

    Nov 7, 2025 · A <select> element is represented in JavaScript by an HTMLSelectElement object, and this object has a value property which contains the value of the selected <option>.

  3. JavaScript select Element

    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:

  4. Change “Select” Option Using JavaScript [With Examples]

    Feb 8, 2024 · There are multiple ways you can do it and choosing one or another will depend on the information you have available. Let’s see 6 different ways of changing the selected option using …

  5. JavaScript select () Method Guide: Learn How to Select Input Text

    Apr 2, 2025 · Learn how to use JavaScript's select () method effectively with examples and detailed explanations. Enhance your web development skills with this step-by-step tutorial.

  6. How to programatically select an HTML option using JavaScript?

    Jun 6, 2012 · The question is "How do I change an HTML selected option using JavaScript?". You just copy/paste a piece of code without answering nothing.

  7. Selection and Range - The Modern JavaScript Tutorial

    Jul 16, 2023 · In this chapter we’ll cover selection in the document, as well as selection in form fields, such as <input>. JavaScript can access an existing selection, select/deselect DOM nodes as a whole …

  8. Multi Select Dropdown with HTML and JavaScript - CodeShack

    Oct 1, 2025 · We'll mimic the native HTML select element and utilize JS classes to provide a user-friendly dropdown box with checkboxes.

  9. How to select DOM Elements in JavaScript ? - GeeksforGeeks

    Jul 27, 2025 · It allows developers to interact with and manipulate elements on a webpage dynamically. Proper selection of elements is crucial for tasks such as updating content, adding event listeners, or …

  10. HTMLInputElement: select () method - Web APIs | MDN

    Jun 11, 2025 · The HTMLInputElement.select() method selects all the text in a <textarea> element or in an <input> element that includes a text field.