How to set Focus to textField on Error

Hi,

My form:

‘enableClientValidation’=>true

‘validateOnSubmit’=>true

How to focus to textField (email) when validateOnSubmit has error?