jCay.org

last scripts

popular scripts

top rated

search
 
search:

Advertisment

Set Focus to First Available Form Control

DeEnFrSp
Hits: 1756

Set Focus to First Available Form Control

Rating 4.0 4.0
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. In this tutorial we will create a function which iterates through all forms until it finds the first available form control.


Platform(s): Windows
Date: Jan, 02 2007
Author: WebCheatSheet, http://www.webcheatsheet.com/javascript/set_focus_first_available_form_control.php

Ratings

Number of Ratings: 100 Votes
5     
45%
4
55%
3
0%
2
0%
1
0%
Visitor Voting Booth: Rate It!