How to select a lable where the child is a checkbox? [duplicate]

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

I am trying to select the label where the child is a checkbox.

here is the html layout:

<div>
<label for=”registration” class=”required”>Agree terms</label> <!– I need to select this –>
<input type=”checkbox” required=”required” value=”1″>
</div>

‫أضف إجابة

تصفح
تصفح

مجهول يجيب