Happy Coding
Monday, November 9, 2015
angular validation set focus on the first invalid element
angular
.
element
(
"[name='"
+
yourForm
.
$name
+
"']"
).
find
(
'.ng-invalid:visible:first'
).
focus
();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment