An invalid form control with name='user[password]' is not focusable. code example

Example 1: an invalid form control with name='' is not focusable

add novalidate in your form
Example:
<form action="" novalidate>
</form>

Example 2: An invalid form control with ... is not focusable.

Just because a form control is hidden doesn't mean it isn't required. And since
it is required, but hidden the browser can't focus the form control.

Every place you have .hide() change it to .hide().prop('required',false) to fix 
your problem.

Tags:

Misc Example