Javascript/Ajax/JQuery

Smart way of focussing a text input on page load for heavy pages

Let's say you have a login page which contains a form with username and password field in it (offcourse, along with a submit button). Let's say being much focussed towards user convenience with the user interface, you want to put the cursor in the username field of your form as soon as the page loads. You just go ahead and write- ...

by raj
Tag: jQuery focus
27-Aug-2012

Grails, HTML/UI/CSS

JQuery script to put focus on first field of any page

Hi, In my recent grails project, i needed to put focus on the first field of any page whenever the page loads. The requirement is such that if the page contains errors then the focus should be on the first input field which has errors. I searched a lot and with the help of my colleague we came out with a simple JQuery script to put...

by Vishal Sahu
Tag: jQuery focus
13-Jan-2011