I am trying to get the label for a checkbox using jQuery. Here is my HTML:
<div class="checkbox">
<label><input type="checkbox" name="cb_type[]" value="sold" >Sold</label>
</div>
I have tried:
$("label[for=:checkbox[value='sold']]");
I know that this works:
$(":checkbox[value='sold']");
Any ideas on how I can get this work?