html-select Questions

2

Solved

I currently have a selectize drop-down that is suppose to have some options in it disabled and hidden depending on a list of strings that I have. Here is the non-selectize javascript function that ...
Joslin asked 9/10, 2018 at 16:39

4

Solved

To set data of an <input> element using JavaScript, we assign the value and name of that element like this: var form = document.createElement("form"); var element = document.createElement("i...
Edmundoedmunds asked 3/4, 2019 at 2:7

6

Solved

first post here, I come in peace :) I've searched but can't quite find what I'm after. I am trying to manipulate the selected option of a select box. Can someone please explain why this works: $(...
Guadiana asked 22/3, 2010 at 17:4

7

Solved

I have a select box (for a customer field) on a complex order form, when the user starts to add lines to the order they should not be allowed to change the customer select box (unless all lines are...
Praline asked 8/4, 2010 at 13:19

9

Solved

I'm using a <select> element in a form I'm making that allows multiple selections, but I want to limit the maximum amount of selections to 10. Is this possible using JavaScript or jQuery?
Labyrinth asked 12/1, 2010 at 2:0

8

I'm trying to hide a few options in a dropdown box using .hide(). This works perfectly fine in firefox and chrome, but it doesn't work in IE and Safari. My original code is more complex but I've na...
Chesterfieldian asked 4/12, 2011 at 6:27

37

I have an input form that lets me select from multiple options, and do something when the user changes the selection. Eg, <select onChange="javascript:doSomething();"> <option>A</o...
Sweven asked 15/3, 2009 at 4:13

13

Solved

I have a page with 5 selects that all have a class name 'ct'. I need to remove the option with a value of 'X' from each select while running an onclick event. My code is: $(".ct").each(function() ...
Nonsense asked 5/10, 2009 at 4:3

12

How can I get all elements from a drop down list? I used the code below: List<WebElement> elements = driver.findElements(By.id("s")); But I am always getting the first element only.
Antipyretic asked 27/5, 2013 at 7:28

7

Solved

i have <select id="x"> <option value="5">hi</option> <option value="7">hi 2</option> </select> I want a javascript function that enables me to select and d...
Salchunas asked 1/12, 2010 at 12:3

16

Solved

How do I remove items from, or add items to, a select box? I'm running jQuery, should that make the task easier. Below is an example select box. <select name="selectBox" id="selectBox"> &lt...
Supralapsarian asked 17/12, 2008 at 18:18

8

Solved

Can someone confirm that its not possible to change the height of a dropdown that is shown when you click on a select box. The size attribute of the select makes it look like a list, the height a...
Cartouche asked 20/2, 2009 at 18:2

3

Solved

I am dynamically filling the values of a dropdown list based of the content of a list. When a item in the dropdown is selected, an option to remove this item is shown. When the item is removed, it ...

9

Solved

I was wondering what the differences are between Select-Option and Datalist-Option. Is there any situation in which it would be better to use one or the other? An example of each follows: Select-Op...
Rouault asked 28/7, 2011 at 21:28

7

Solved

I have a listbox and I want to decrease its width. Here is my code: <select name="wgtmsr" id="wgtmsr" style="width: 50px;"> <option value="kg">Kg</option> <option value="gm...
Homage asked 18/12, 2012 at 11:4

15

I am trying to replicate what you can see here in this image. I want to be able to either type in the text field above the box or just click on the option directly. What would be the best way to...
Premature asked 13/9, 2013 at 22:31

5

Solved

I find the the Django Admin's default models.ManyToManyField widget to be cumbersome to use. It's the HTML select element and if you have a lot of Objects of the "other" model then it's quite impra...
Shipley asked 22/3, 2011 at 2:1

6

In the picture, the width of option is larger than the select box. I want to set width of those options as same as select box & for those larger options set text-overflow as ellipsis. Any hel...
Lugworm asked 17/4, 2016 at 12:47

2

Solved

I have a dropdown field like this: <select> <option>1</option> <option>2</option> <option>3</option> </select> Can I use a superscript tag <s...
Strenta asked 22/7, 2015 at 4:20

8

Solved

I have a select element with a few options, but I want some of the options to not be selectable. Basically it's like this: <select> <option> CITY 1 </option> <option> Ci...
Surplus asked 26/6, 2013 at 9:38

9

I have a select which initially shows Select language until the user selects a language. When the user opens the select, I don't want it to show a Select language option, because it's not an actual...
Torsk asked 25/2, 2012 at 19:7

3

Solved

Using Angular 4, I have a html template and I want a selection box with two options. One of those options should be pre-selected by default. <select name="rate" #rate="ngModel" ngModel required...
Pubescent asked 13/10, 2017 at 17:57

13

Solved

I am new to HTML and PHP and want to achieve a drop-down menu from a MySQL table and hard-coded options too. I have multiple select elements in my page, one of them is: <select name="taggin...
Coquet asked 26/2, 2014 at 6:52

18

Solved

I need to select an element from a drop-down menu. For example: <select id="fruits01" class="select" name="fruits"> <option value="0">Choose your fruits:</option> <option ...
Superfamily asked 23/10, 2011 at 16:40

19

Solved

I have a dynamically created select option using a javascript function. the select object is <select name="country" id="country"> </select> when the js function is executed, the "cou...
Ways asked 4/1, 2011 at 3:6

© 2022 - 2024 — McMap. All rights reserved.