Setting checkbox input when specific value equals variable in jquery
<p>I am trying to use JQuery to set a checkbox to checked if the input value of the checkbox is equal to some other variable that I have. This is what my code looks like: </p>

<pre><code>var test_val = "test";
$('#checkbox[value='+test_val+']').attr('checked', true);
</code></pre>

<p>This does not seem to be working, thanks for the help</p>
