Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How To Set Focus to First Available Form Control

Share this post!
 Vote this!

Sometimes it is necessary to set the focus to the first available form control. The problem is that complex web pages can contain multiple forms and each form individually can contain hidden or disabled elements and controls that cannot accept focus.
The code here iterates through all forms skipping hidden and disabled elements and stops when it finds the first available form control:  more...

0 comments:

Post a Comment