I want to focus the first error field automatically on model validation, please share code to set the cursor to the first input control with MVC client validation. Thanks in advance.
Set focus on first input control automatically for error
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Midhun TpRank #388 · 6.5K reputationPosted Sep 14, 2016, 7:40 AM EDT
Abhinav AbhishekRank #2,198 · 642 reputationPosted Sep 14, 2016, 7:50 AM EDT
Ravi PatelRank #439 · 5.7K reputationPosted Sep 14, 2016, 9:13 PM EDT