Thursday, October 4, 2012

Jquery - Data Role page show event

For mobile Jquery to hit event on every data role page loads  

HTML:

<div data-role="page">
//your page
</div>


JQuery:

$("div[data-role*='page']").live("pageshow", function () {
        //your code goes here

});