Trigger jquery mobile page transition from function
jquery, jquery-mobile
Solution
If it's in the same page. It needs to be.
//Solution From Comments Below; Thanks!
$.mobile.pagecontainer( "change", "#page2", { transition:"slide" } );
//Original Answer Deprecated
$.mobile.changePage($('#page2'), {transition:"slide"});
Problem
Is it possible to navigate from one page to another using jquery mobile page transition? Currently i have an input box that fires a function on focusout, like so; ``` $("#page1").on("focusout", "input", function(){ alert("working"); } ``` What i would like to do is after the focusout function fires, i would like to take the user to another page, using jquery mobile's page navigtion. Normally i would use a button like so; ``` <a href="#page2">Next</a> ``` How can i fire the `#page2` from the focusout function?