I am using jQuery Mobile 1.1.1 and Apache Cordova 2.0.0. I want my app to exit when I press back button but only if current page have ID = feedZive. I am using following code to
Try this, it's working for me:
var activePage = $.mobile.activePage[0].id;
Here is a Fiddle with an alert that is working: http://jsfiddle.net/9XThY/3/