Using boolean variable in jquery .prop() while unchecking checkboxes. How can I manage it?
<p>I've the following code in jquery:</p>

<pre><code>    $('.checklist_true').click(function(e)
{
    $('.checkid').prop({checked: true});
    e.preventDefault();
})

$('.checklist_false').click(function(e)
{
    $('.checkid').prop({checked: false});
    e.preventDefault();
})
</code></pre>

<p>I would like to replace .checklist_false and true classes with one, and would like to read a value to a variable containing boolean true/false. (originally .checklist classes attached to  tags.
But if I try this:</p>

<pre><code>var tf = new Boolean($(this).prop('rel')).valueOf();
$('.checkid').prop({checked: tf});
</code></pre>

<p>It always evaluates to ture and checks the box. Can somebody explains me why?</p>
