Display DropDown options on Focus

Posted by davidylam on Stack Overflow See other posts from Stack Overflow or by davidylam
Published on 2010-05-28T21:03:02Z Indexed on 2010/05/28 21:12 UTC
Read the original article Hit count: 100

Filed under:
|
|

I have a simple html dropdown, I wants to use jQuery if possible to display all the options if this control has the focus(as if the user click on the dropdown). I have tried jQuery trigger(), click(), to avail.

  <select id="single">
    <option>Single</option>
    <option>Single2</option>
  </select>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery