-1

I have one question, when i want to triggering my label and my select tag, structure like this:

<label class="label"></label>
<select class="select">
</select>

and my jquery code:

$(".label").click(function(){
   $(".select").click();
});

i'm try to use mousedown too, but it still can't open the select tag... Any idea ?

Michael Antonius
  • 942
  • 2
  • 11
  • 20
  • simulate on select won't open the drop down: http://stackoverflow.com/questions/360431/can-i-open-a-dropdownlist-using-jquery – kleinohad Dec 09 '12 at 06:23
  • you can't open the drop-down programatically; you can only force focus onto the element. If you want to change it's physical appearance to dropped-down, you'll have to swap out the UI for another solution in HTML instead of the browser-UI for
– bokonic Dec 09 '12 at 06:25