setting checkbox value
<p>I have this code:</p>

<pre><code>$('#chkBox').click(function() {
    $('#hiddenBox').val($('input').is(':checked'));
});
</code></pre>

<p>I want it to be where if i click on the checkbox, in my hidden field, I set the value to true else if it's not clicked, the value would be false. Can anyone help?</p>
