Highlight related label when input has focus
The label element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the label element, it toggles the control. With the script below you can add an extra improvement to your form. Now when an input field has the focus the corresponding label will be highlighted.