on-internet
← Community

Set the focus on input element after submit

Stack Overflow ·

I have a form with some input fields. I am using the tabStrip KendoUI widget to group the input fields. I am using the Kendo validator and when the form is submitted some error messages are triggered. The problem is that if the input field with the error message is on a different tab then the currently selected the user cannot see it. What I want to accomplish is when the form is validated the tab containing the first input field with error message to be selected and the focus to be on that input field. Here is some sample code: <script type="text/javascript"> $("#tabStrip").kendoTabStrip(); <

Comments

Sign in or sign up to comment and upvote.

No comments yet.