jQuery Mobile dynamic page event
Hi,
I am created a dynamic page using jquery mobile, how to get an event after create this page and i need an alert from this button
this is my code:
$("#test").on('click',function(){
var newPage = $("<div data-role=page data-url=testpage><div data-role=header><h1>TEST</h1></div><div data-role=content> <input type='button' value='clic kMe' id='click_me'> </div></div>");
newPage.appendTo( $.mobile.pageContainer );
$.mobile.changePage( newPage );
});