Home > Categories > Forms

Add hidden field to a form

March 22, 2011Forms

 

Hidden Fields allow you to send additional information with a submitted form that don't necessarily require a user to "fill them out." Sometimes it will be necessary to add a hidden field add runtime.

Email validation with RegEx

March 24, 2011Forms

 

The code below demonstrates how to validate an email address with JavaScript

Highlight related label when input has focus

March 22, 2011Forms

 

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.