views:

67

answers:

4

Using jquery, how would I make a SELECT menu display itself without actually clicking on it?

I tried sending a click() event (in Safari and Firefox) but no luck.

$('#myselectmenu').click();

Also tried focus() and select() (and various combinations of the three).

Any ideas?

Thanks!

+1  A: 

I don't think this is possible.

You could use a custom drop-down list.

SLaks
That's sort of what I was starting to think. Good to know. Won't waste any more time on it. Custom list it is. Thanks much.
patrick dw
A: 

You always have the option of coding your own function to mimic a "select" menu

Derek Adair
A: 

Hmmm, onMouseover? But then how do you get it to do the drop down? Feels like there should be some way to invoke that. Never tried it before.

Peter Rowell
I was actually trying to pop it up in code from a different function. Thanks anyway.
patrick dw
A: 

SELECT component is a component to stay away from. Implement you own and, then try mouseenter() and mouseleave() events.

Carlo Pires