jQuery .click() perform the default action before the custom function
<p>Here is my code, I have two checkboxes and want to keep one disabled until the other one is enabled:</p>

<pre><code>$(function(){
    $('#remember').live('click', function(event){
        if($('#remember').is(':checked')){
            $('#keepIn').removeAttr('disabled');
        }
        else
            $('#keepIn').attr('disabled', 'disabled');
    });
});
</code></pre>

<p>The problem is that this function executes before the default action and when I click in the first one <code>$('#remember').is(':checked')</code> returns false (the old value) instead of true.</p>
