HTML:
<select id="g_contracts">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
JS:
$(document).ready( function() {
$("#g_contracts").trigger("change");
$("#g_contracts").on("change", function() {
alert(44);
});
});
Well, alert happens when I directly change selector, but trigger("change")
not causes anything.
What I missed ?