I am creating a Phonegap & JQuery mobile application. I have some buttons, and on navigating in the app, if you go back to the menu screen you see them still selected (in active state) or else in hover state.
Is it possible to reset the state once the user goes back to the menu screen?
Yes you can, you need to remove its ui-btn-active class.
Example:
$("#button").removeClass("ui-btn-active");
Do it in pagebeforeshow event:
$('#page').live('pagebeforeshow',function(e,data){
$("#button").removeClass("ui-btn-active");
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With