focusInvalid focuses elements when submitting an invalid form. Each one can be disabled, see the onxxx options (onsubmit, onfocusout, onkeyup, onclick). This method sets up event handlers for submit, focus, keyup, blur and click to trigger validation of the entire form or individual elements.
0 Comments
Leave a Reply. |