I have a select element as follows. i want to open it without user having to click on it.
$(document).ready(function(){
$('#selId').on('click',function(){
//do stuff here
});
$('#selId').trigger('click');
});
This should work.
Update:
$(document).ready(function(){
$('#selId').click(function(){
//do stuff here
});
$('#selId').click();
});
Very similar to the other answer, but that should do it also rather then "click" you can try "focus"