have this form:
<form>
<input type='radio' id='ur' name='selectedLang'/>
<label for="ur">Uyghur</label><br>
<input type='radio' id='af' name='selectedLang'/>
<label for="af">Dari</label><br>
<input type='radio' id='uz' name='selectedLang'/>
<label for="uz">Uzbek</label><br>
<input type='radio' id='kr' name='selectedLang'/>
<label for="kr">Kurdish</label><br>
</form>
when i click the word uyghur, which is inside the label tags, console.log(e.target) executes BUT it prints the input element, not the label tag how to make it print the label tag?
e.target.parentNode?
it printed <form> i want it to print the label tag.
Обсуждают сегодня