Here is the issue, which one I am not able solve. In my page, I am having a select menu. Beside the select menu, one button. What I want is, when I click the button, the select menu will open. Here is the code which one I started.
$('#myButton').click(function () {
$('#mySelect').bind('mousedown', function () {
console.log('foo');
});
$('#mySelect').trigger('mousedown');
});
Here is the jsbin link. http://jsbin.com/Odeyocof/2/edit?html,js,output