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 using
var activePage = $.mobile.activePage.attr("id");
I made a working jsfiddle for you http://jsfiddle.net/Z5Uze/1/