html-option

Is there a max number of options (values) in HTML drop down control?

Does anyone know how many options a drop down list can have? Is it unlimited? How many before performance degrades? ...

Javascript: How to dynamically create an <option> that contains an HTML entity (— ... «)

I'd like to add an <option> element to a <select> element where the <option> element's text contains an HTML entity: &mdash; In HTML, the code would look like this: <select name="test" id="test"> <option value="">&mdash; Select One &mdash;</option> </select> My Javascript code looks like this: function selectOne() { var e = docume...

Rendering a hierarchy of "OPTION"s in a "SELECT" tag

My problem is HTML and CSS related. I have a hierarchy type structure that I want to display inside a list. The hierarchy contains Countries, States and Cities (it is three levels deep). I want to display the list inside a select list, each item type (Country, State, City) must be selectable. The items should appear indented as: Unite...

Checking for existence of an option with certain text

I'm trying to use jQuery to check for the existence of an <option> that contains a particular string of text. My attempts so far are not working as I expect. Here's the HTML: <select> <option value="13">General</option> <option value="3">Innovation</option> <option value="8">Marketing</option> <option value="9">Operation...