toggle checkbox attribute with jquery
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1467228/click-toggle-with-jquery">Click Toggle with jQuery</a>  </p>
</blockquote>



<p>i tried 1 hour to toggle a checkbox. tried everything but i cant get this to work. </p>

<pre><code>$('#edit-customer-profile-shipping .fieldset-title').click(function() {
    if ($('#edit-customer-profile-shipping input.toggler').is(':checked')) {
        $('#edit-customer-profile-shipping input.toggler').attr('checked', false);
    } else {
        $('#edit-customer-profile-shipping input.toggler').attr('checked', true);
    };
});
</code></pre>

<p>Could anyone help me out please??</p>
