A quick question. Can i simulate click on a select box (irrespective of the id or class of the selectbox) inside a div using JQuery. There is only one select box in the div. Thanks in advance
Here is the HTML:
<div class="custom-select">
<select id="operator_select">
<option value="1">1</option>
<option value="2">2</option>
<select>
</div>
Jquery code that I tried:
$(function(){
$(".custom-select").click(function(){
$('select',this).click();
});
});
here's a fiddle: http://jsfiddle.net/arjdev/5Sch2/