views:

179

answers:

2

Possible Duplicate:
How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)

Is there a way to programmatically display/open a drop down menu (<select>)?

+1  A: 
alex
A: 

I'll often program in a series of <select>/<option> tags, but then replace it with jQuery to become an anchor than spawns a <div> when clicked, and the <div> contains a <ul> of the options. This allows for better styling, and can be quite keyboard accessible if you choose to program that in.

I mostly do it because my designer insists upon non-native form elements.

Alex Mcp
Can be downright annoying when the designer ignores usability with their *custom* input boxes.
alex
But aside from the PITA it causes, you CAN make it quite usable by assigning key shortcuts to different options or otherwise enhancing the behavior of the list (if it makes sense to, obviously)
Alex Mcp