Change input property by clicking on a label
<p>What I need:</p>

<p>If I click on a label I want to add a checked in the input.</p>

<p>When I try it I got two alerts with a true. That isn't correct and in firebug the input field doesn't change.</p>

<p>For a test I want to output the filterguid but the alerts are empty and again there are two alert boxes. </p>

<p>HTML Markup:</p>

<pre><code>&lt;li&gt;
 &lt;label&gt;
  &lt;input type="checkbox" filterguid="895f7bc2-d609-4b09-97f9-c09f9fc90d1b"&gt; Weiblich
  &lt;/label&gt;
&lt;/li&gt;
</code></pre>

<p>jQuery:</p>

<pre><code>$('.targetgroup-frame li label').on('click', function(){
   $(this).children().prop('checked', true);
    alert($(this).children().prop('filterguid'));
});
</code></pre>

<p>Is my jQuery code correct?</p>

<p>Thank you.</p>