In my example code here:
http://jsfiddle.net/TXPJZ/592/
I have a <select>
element with initial text of "Group..." that I only want to show at first. When the user clicks the control I don't want them to be able to select "Group..." as an option. So what I tried was removing the "Group..." option from the array.
This approach works however the initial choice of "Group..." is stuck there unless you click the form then click off in empty space or select a choice other than "All". Also it results in a cloned "Admins" option at the bottom of the list (in Chrome anyways).
Is there a way to make this work or is there another approach I could take? I was thinking of having the form initialize to blank selection and floating a separate text element above it that would say "Group..." which I would hide on click. The problem with that solution is I anticipate that the text will "block" the click from getting through to the dropdown control.