tagged [html-select]
How to select a drop-down menu value with Selenium using Python?
How to select a drop-down menu value with Selenium using Python? I need to select an element from a menu. For example: First I have to click on it. I do this: ``` inputElementFruits = driver.find_ele
- Modified
- 20 Jul at 20:11
How to ensure a <select> form field is submitted when it is disabled?
How to ensure a form field is submitted when it is disabled? I have a `select` form field that I want to mark as "readonly", as in the user cannot modify the value, but the value is still submitted wi...
- Modified
- 16 Nov at 15:52
How to fire a change event on a HTMLSelectElement if the new value is the same as the old?
How to fire a change event on a HTMLSelectElement if the new value is the same as the old? I have the following markup: When a user pulls down the combobox and selects the same option that was previou...
- Modified
- 8 Nov at 12:44
How to style a select tag's option element?
How to style a select tag's option element? I'm trying to set the style of an `option` in a `select` dropdown menu in Google Chrome. It works in all browsers except IE9 and Chrome. ``` Red
- Modified
- 17 Nov at 10:27
Change select box option background color
Change select box option background color I have a select box and I'm trying to change the background color of the options when the select box has been clicked and shows all the options. ``` body { b...
- Modified
- 22 Nov at 13:0
Set select option 'selected', by value
Set select option 'selected', by value I have a `select` field with some options in it. Now I need to select one of those `options` with jQuery. But how can I do that when I only know the `value` of t...
- Modified
- 18 Sep at 15:40
HTML SELECT - Change selected option by VALUE using JavaScript
HTML SELECT - Change selected option by VALUE using JavaScript There can be many options in a SELECT dropdown. I'm creating a page where a user's profile is retrieved from the database and a form is s...
- Modified
- 2 Dec at 09:53
How to check if an item is selected from an HTML drop down list?
How to check if an item is selected from an HTML drop down list? I have a drop drown list and I am having trouble checking whether or not a value has been selected from the drop down list Below is my ...
- Modified
- 16 Jan at 14:45
Can an Option in a Select tag carry multiple values?
Can an Option in a Select tag carry multiple values? I got a select tag with some options in a HTML form: (the data will be collected and processed using PHP) Testing: Is it possible for an option to ...
- Modified
- 16 Jul at 18:5
create many DropDownListFor in foreach-loop
create many DropDownListFor in foreach-loop I want to create DropDownLists dynamically out of a List, which supplies the SelectList and a field where to save the selection. In
- Modified
- 16 Apr at 11:41
Select with Indented as well as formatted Items in PHP
Select with Indented as well as formatted Items in PHP I have a need to show a select box which will display all categories and subcategories in one go. I want to show All Categories left most & bold ...
- Modified
- 29 Jul at 05:23
Why I am getting "System.Web.Mvc.SelectListItem" in my DropDownList?
Why I am getting "System.Web.Mvc.SelectListItem" in my DropDownList? I believe I have bound my data correctly, but I can't seem to get my text property for each SelectListItem to show properly. My mod...
- Modified
- 2 Mar at 18:59
Is there an onSelect event or equivalent for HTML <select>?
Is there an onSelect event or equivalent for HTML ? I have an input form that lets me select from multiple options, and do something when the user the selection. Eg, Now, `doSomething()` only gets tri...
- Modified
- 25 Jan at 00:21
Change <select>'s option and trigger events with JavaScript
Change 's option and trigger events with JavaScript How can I change an HTML ``'s option with JavaScript (without any libraries like jQuery), while triggering the same events as if a user had made the...
- Modified
- 3 Sep at 11:0
html select option SELECTED
html select option SELECTED I have in my php let say I have an inline URL = `site.php?sel=one` if I didn't saved those options in a variable, I can do it this way to make one of the option be SELECTED...
- Modified
- 31 Aug at 16:4
Get Selected value from dropdown using JavaScript
Get Selected value from dropdown using JavaScript I have the following HTML ``` Choose your answer To measure time To measure distance To measure volume
- Modified
- 31 Aug at 12:16
How to have a default option in Angular.js select box
How to have a default option in Angular.js select box I have searched Google and can't find anything on this. I have this code. With some data like this ``` options = [{ name: 'Something Cool', valu...
- Modified
- 3 Nov at 15:35
jQuery - disable selected options
jQuery - disable selected options Need to disable already selected options in select box using jQuery. I'd like it to grey out like [asmselect](http://www.ryancramer.com/projects/asmselect/examples/ex...
- Modified
- 3 Mar at 02:48
Get index of selected option with jQuery
Get index of selected option with jQuery I'm a little bit confused about how to get an index of a selected option from a HTML `` item. On [this](http://www.theextremewebdesigns.com/blog/jquery-get-sel...
How can I create unique IDs with JavaScript?
How can I create unique IDs with JavaScript? I have a form where a user can add multiple select boxes for multiple cities. The problem is that each newly generated select box needs to have a unique id...
- Modified
- 15 Jun at 12:59
What is the best way to check if the currently selected option in a dropdown list is the last one?
What is the best way to check if the currently selected option in a dropdown list is the last one? I have a drop-down list and I've bound a change event handler to it. Whenever the user selects a new ...
- Modified
- 20 Jan at 19:25
How can I change the font-size of a select option?
How can I change the font-size of a select option? I am trying to style a select option dropdown list. Is it possible to make the font-sizes of the options different from the default value? For exampl...
- Modified
- 17 Nov at 10:4
How do you remove all the options of a select box and then add one option and select it with jQuery?
How do you remove all the options of a select box and then add one option and select it with jQuery? Using core jQuery, how do you remove all the options of a select box, then add one option and selec...
- Modified
- 12 Jan at 21:5
How to set the 'selected option' of a select dropdown list with jquery
How to set the 'selected option' of a select dropdown list with jquery I have the following jquery function: `result[0]` is a value that I want to set as the `selected` item in my select box. `result[...
- Modified
- 25 Jul at 11:35
Select dropdown with fixed width cutting off content in IE
Select dropdown with fixed width cutting off content in IE The issue: Some of the items in the select require more than the specified width of 145px in order to display fully. : clicking on the select...
- Modified
- 29 Jul at 05:15