Checkbox click event also executed when clicking the label
<p>I was wondering why the checkbox click event executed when clicking the label. Any help please how to prevent executing when clicking on the label</p>

<p>//Click event</p>

<p>//I try this one</p>

<pre><code> $("input:checkbox[name*='chkFields']").click(function (evt) {
        if ($(evt.target).is("input")) {
            if ($(this).attr("checked") == "checked") {
}}});
</code></pre>

<p>//And also this one</p>

<pre><code>$("input:checkbox[name*='chkFields']").click(function () {
        if ($(this).attr("checked") == "checked") {
         logic here....
}
});
</code></pre>

<p>// HTML</p>

<pre><code>&lt;div class="FloatLeft" id="draggableElements"&gt;

               &lt;div style="width: auto!important; margin-bottom: 0px;" class="TableCellHeader metooltip ellipsis" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_divHeader" title="
                   Employee 

               "&gt;
                   Employee 
               &lt;/div&gt;
               &lt;div style="margin-bottom:5px"&gt;
                   &lt;table class="checkbox" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields"&gt;
                                                        &lt;tbody&gt;
                                                        &lt;tr&gt;
                                                            &lt;td&gt;
                                                                &lt;span class="aspNetDisabled"&gt;
                                                                    &lt;input type="checkbox" value="106" disabled="disabled" checked="checked" name="ctl00$ContentPlaceHolderContent$sbMain$ctl01$sbGroups$ctl01$DraggableListID$repColumnCategory$ctl00$chkFields$0" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields_0" style="visibility: hidden;"&gt;
                                                                    &lt;label for="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields_0"&gt;Employee Name&lt;/label&gt;
                                                                &lt;/span&gt;
                                                            &lt;/td&gt;
                                                        &lt;/tr&gt;
                                                        &lt;tr&gt;
                                                            &lt;td&gt;
                                                                &lt;span&gt;
                                                                    &lt;input type="checkbox" value="20" checked="checked" name="ctl00$ContentPlaceHolderContent$sbMain$ctl01$sbGroups$ctl01$DraggableListID$repColumnCategory$ctl00$chkFields$1" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields_1"&gt;
                                                                    &lt;label for="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields_1"&gt;Job&lt;/label&gt;
                                                                &lt;/span&gt;
                                                            &lt;/td&gt;
                                                        &lt;/tr&gt;
                                                        &lt;tr&gt;
                                                            &lt;td&gt;
                                                                &lt;span&gt;
                                                                    &lt;input type="checkbox" value="21" checked="checked" name="ctl00$ContentPlaceHolderContent$sbMain$ctl01$sbGroups$ctl01$DraggableListID$repColumnCategory$ctl00$chkFields$2" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields_2"&gt;
                                                                    &lt;label for="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl00_chkFields_2"&gt;Age&lt;/label&gt;
                                                                &lt;/span&gt;
                                                            &lt;/td&gt;
                                                        &lt;/tr&gt;
                                                    &lt;/tbody&gt;&lt;/table&gt;
               &lt;/div&gt;

               &lt;div style="width: auto!important; margin-bottom: 0px;" class="TableCellHeader metooltip ellipsis" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_divHeader" title="
                   Sample text

               "&gt;
                   Sample text
               &lt;/div&gt;
               &lt;div style="margin-bottom:5px"&gt;
                   &lt;table class="checkbox" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields"&gt;
                                                        &lt;tbody&gt;&lt;tr&gt;
                                                            &lt;td&gt;
                                                                &lt;input type="checkbox" value="89" name="ctl00$ContentPlaceHolderContent$sbMain$ctl01$sbGroups$ctl01$DraggableListID$repColumnCategory$ctl01$chkFields$0" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields_0"&gt;
                                                                &lt;label for="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields_0"&gt;Amount&lt;/label&gt;
                                                            &lt;/td&gt;
                                                        &lt;/tr&gt;
                                                        &lt;tr&gt;
                                                            &lt;td&gt;
                                                                &lt;input type="checkbox" value="90" name="ctl00$ContentPlaceHolderContent$sbMain$ctl01$sbGroups$ctl01$DraggableListID$repColumnCategory$ctl01$chkFields$1" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields_1"&gt;
                                                                &lt;label for="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields_1"&gt;Percent&lt;/label&gt;&lt;/td&gt;
                                                        &lt;/tr&gt;
                                                        &lt;tr&gt;
                                                            &lt;td&gt;
                                                                &lt;input type="checkbox" value="91" name="ctl00$ContentPlaceHolderContent$sbMain$ctl01$sbGroups$ctl01$DraggableListID$repColumnCategory$ctl01$chkFields$2" id="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields_2"&gt;
                                                                &lt;label for="ctl00_ContentPlaceHolderContent_sbMain_ctl01_sbGroups_ctl01_DraggableListID_repColumnCategory_ctl01_chkFields_2"&gt;Adjustment&lt;/label&gt;
                                                            &lt;/td&gt;
                                                        &lt;/tr&gt;
                                                    &lt;/tbody&gt;&lt;/table&gt;
               &lt;/div&gt;



 &lt;/div&gt;
</code></pre>
