Click checkbox based on label name
<p>I have two checkboxes with labels named Headline A and Headline B. I'm trying to come up with a way to activate the checkbox of Headline B if the checkbox of Headline A is checked - and vice versa. </p>

<pre><code>&lt;input type="checkbox"&gt;
&lt;label&gt;HEADLINE A&lt;/label&gt;

&lt;input type="checkbox"&gt;
&lt;label&gt;HEADLINE B&lt;/label&gt;
</code></pre>

<p>This is what I started on, but I'm afraid it's not even close.</p>

<pre><code>if($("label:contains('HEADLINE A')").closest('input').is(':checked')){
$("label:contains('HEADLINE B')").closest('input').is(':checked')
} 
</code></pre>

<p>Do I use regex to match the word 'headline' and then come up with the appropriate action? </p>
