Created
December 12, 2010 22:14
-
-
Save dmolsen/738392 to your computer and use it in GitHub Desktop.
Provides a simple way to provide focus on the title of the newly loaded "page" in a jQTouch app for accessibility purposes
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
// thx to dave mulder for the pointer on what needed to be added and the initial test code | |
$(function(){ | |
// simple function to force focus on title of the newly loaded page | |
$('#jqt').bind('pageAnimationEnd', function(event, info){ | |
if (info.direction == "in") { | |
$("div.current div.toolbar h1").focus(); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment