Pointing to first field after validation

tracy

New Member
I have a webpage which has check-boxes, input fields, dropdowns etc.,Mandatory conditions are checked using javascript. If anyone fails to fill these fields and press next button validation errors popup.Now what I want to achieve is when someone fails to enter information in the mandatory fields, the cursor should go to the first field which caused the error.Can anyone suggest me how to do this?
 
Back
Top