Can't seem to get sample code to replace check boxes working
<p>I used code from the following:</p>

<p><a href="http://www.htmldrive.net/items/show/311/Fancy-checkboxes-and-radio-buttons-with-jquery" rel="nofollow">Fancy checkboxes</a></p>

<p>The demo appears to work but it seems that it does not really change the status of the checkbox. Rather it just makes it looked checked or not checked.</p>

<p>Here's the HTML:</p>

<pre><code>&lt;fieldset class="checkboxes"&gt;
            &lt;label for="checkbox-01" class="label_check c_on"&gt;&lt;input type="checkbox" checked="" value="1" id="checkbox-01" name="sample-checkbox-01"&gt; I agree to the terms &amp;amp; conditions.&lt;/label&gt;
            &lt;label for="checkbox-02" class="label_check"&gt;&lt;input type="checkbox" value="1" id="checkbox-02" name="sample-checkbox-02"&gt; Please send me regular updates.&lt;/label&gt;
        &lt;/fieldset&gt;
</code></pre>

<p>Here's the javascript that is used:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function setupLabel() {
        if ($('.label_check input').length) {
            $('.label_check').each(function () {
                $(this).removeClass('c_on');
            });
            $('.label_check input:checked').each(function () {
                $(this).parent('label').addClass('c_on');
            });
        };
    };
    var linkObj;
    $(document).ready(function () {
        $('.label_check, .label_radio').click(function () {
            setupLabel();
        });
        setupLabel();
</code></pre>

<p>Can someone please confirm if there's a problem with the code. Seems to me that the author has missed making the code change the checkbox checked state. </p>

<p>Here's the code I use to check the status of the checkbox:</p>

<pre><code>var action = $('#htmlEdit').is(":checked") ? "Editing HTML" : "Editing";
</code></pre>

<p>Am I doing the check wrongly or is the author's code just not changing the input element?</p>
