.click() doesn't fire function?
<p>I have checkboxes that toggle on/off select option values. This part works fine.</p>

<p>Now I want to "check" the check box after page load by default. </p>

<p>I tried <code>.click()</code> that checks the checkbox but doesn't run the click code that is linked to it. Tested on firefox 6.0.2, Safari &amp; Chrome. Any suggestion how to do so?</p>

<p><a href="http://jsfiddle.net/radek/HExeK/1/" rel="nofollow">jsfiddle</a> example is <a href="http://jsfiddle.net/radek/HExeK/1/" rel="nofollow">here</a> or below</p>

<pre><code>$(function(){

    $selectClone = $("select[name=db2_timestamp]").clone(true);
    $("input[name=hideit]").click(function(){
        var $this;
        $selectClone.find("option").attr("disabled", false);

        $("input[name=hideit]").each(function(){
            var value = $(this).attr('value');

            if($(this).is(":checked")){

                $selectClone.find("option").each(function(){
                    $this = $(this);
                    if($this.val().indexOf(value) != -1){
                        $this.attr("disabled", true);
                    }
                });
            }        
        })       

        var $select = $("select[name=db2_timestamp]")
        $select.children().remove();

        $selectClone.find("option:enabled").each(function(){
             $select.append($(this).clone(true));
         });
    });
    $("input[value=w]").click();
});
</code></pre>
