How can i use switch to have a  checkbox checked in jQuery?
<p>I am trying to use switch() if the check box is checked,but it does not work. What is the probem here i could not figure out.
Could you help plz.
here is what i tried </p>

<pre><code>&lt;input type="checkbox" class="che" value="1" /&gt;age
&lt;input type="checkbox" class="che" value="2" /&gt;sex

$(".che").click(function(){


var chek= $(this).is(":checked") ;
alert(chek);
        switch(chek){
        case 1:
        alert ('ok');
        $('.myTableRow').show();
        break;
        case 2:
        alert('hora');
            $(".myTableRow").hide();
        break;
       }
    });
</code></pre>
