Skip to content

Instantly share code, notes, and snippets.

@dmolsen
Created December 12, 2010 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmolsen/738392 to your computer and use it in GitHub Desktop.
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
// 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