Calling change function at document start
<p>I have implemented following code:</p>

<pre><code>$('#select1').change(function() {
    var options = '';
    if($(this).val() == 'a') {
        options = '&lt;option value="1"&gt;1&lt;/option&gt;&lt;option value="2"&gt;2&lt;/option&gt;';
    }
    else if ($(this).val() == 'b'){
        options = '&lt;option value="3"&gt;3&lt;/option&gt;&lt;option value="4"&gt;4&lt;/option&gt;';
    }

    $('#select2').html(options);
});
</code></pre>

<p>When the document is initialised i would like to call the change function first time, to populate my <code>select</code>, rather than changing options to trigger <code>change</code>. Is this possible and how?</p>
