Inside label i would like to have two span elements.. see example at jsfiddle: https://jsfiddle.net/c7bz1gf2/
<div class = 'div_test'>
<div class="checkbox">
<input type="checkbox" id="id_chxbox" name="" value="">
<label for="id_chxbox"><span>Checkbox 1 </span> <span class='detail_view'> [detail] </span></label>
</div>
</div>
(style for checkbox was found in this question: How to change the background color on a input checkbox with css?)
I would like to "alert" only when i click on the "details" span..and when this event fires, it shouldn't mark checkbox as "checked"..
Can anyone help me with this?