So, the typical way to achieve this without a "label-for input-id" relationship would be to add <input> inside <label> element. That is enough to achieve the intended behavior, i.e. on label click, input element gets focused.
So, the typical way to achieve this without a "label-for input-id" relationship would be to add <input> inside <label> element. That is enough to achieve the intended behavior, i.e. on label click, input element gets focused.
Loves the web • DIY • DRY • ASP.NET • JavaScript • Angular • NodeJS (i/bitsy) • Believer of great UX