Created
July 23, 2008 19:59
-
-
Save agile/1879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function(){ | |
// Cascading series of finds to focus the most likely relevant field | |
window.setTimeout(function() { | |
jQuery("div.fieldWithErrors :input:visible:enabled:first, :input:visible:enabled:first").focus(); | |
jQuery(".tabs-container").not(".tabs-hide").find("div.fieldWithErrors :input:visible:enabled:first, :input:visible:enabled:first").focus(); | |
}, 100); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment