How to autofocus tab

1
Hi guys, I am wondering whether one of you has experience with implementing autofocus on the textfields. Now I have set up tab indexes and the focus is on when tabbing over textfiels, but the very first tab index isn't caught and has not a (auto)focus state. What could you advice to get this in a focused state?
asked
2 answers
1

Did you see this widget: https://appstore.home.mendix.com/link/app/2583/Mendix/Scroll-To-Anchor?

Regards,

Ronald

answered
1

This question seems to be asked more than a year ago. Still, my answer can be of some help to someone.

Code below worked for me.

setTimeout(function() {
        $('.input').eq(0).focus();
},500);

Find first input and set focus to it. setTimeout bypassed all the other loads in my application.

answered