Grails

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 Script
13-Jan-2011