Let's say I have an html form. Each input/select/textarea will have a corresponding <label>
with the for
attribute set to the id of it's companion.
Given an input element in javascript --via an onkeyup event, for example--, what's the best way to find it's associated label?