Skip to Content
0
Former Member
Jul 20, 2016 at 04:13 PM

How to keep cursor on the first element in form?

25 Views

hi,

I have created a login page wid uname and password.. onload of the page i want to keep the cursor on username textbox.. . how will i do tat??

i tried something lik this.. but its nt working.. 😔

onAfterRendering: function() { var self = this; $('document').ready(function() { self.getView().byId('loginEmail').focus(); }); },