Home > Forum > Forms > Setting focus on form-fields after throwing error with validate form

Setting focus on form-fields after throwing error with validate form
0

I have form-validations that work correctly and catches errors correctly.
It would be nice if I could sat the HTML-form focus on that particular element that was validated wrong!

Any suggestions , I find it hard because form-validation only returns true or false i cant use it afterwards anymore