Get page header title
Description
The following code shows how to get page header title.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.4.js'></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<script type='text/javascript'>
$(window).load(function(){<!-- w w w . j a v a2s .c o m-->
var theTitle = $("div:jqmData(role='header')").children('h3').html();
alert('Title: '+theTitle);
});
</script>
</head>
<body>
<div data-role="page" id="some">
<div data-role="header">
<h3>I need this</h3>
</div>
<div data-role="content">Page 1</div>
<div data-role="footer">Footer</div>
</div>
</body>
</html>