In my mobile app, using jQuery Mobile...
I would like to make a simple button execute a simple javascript function on click. No page transitions, nothing sp
What I do is force the buttons to revert to inactive state before a page changes.
//force menu buttons to revert to inactive state $( '.menu-btn' ).on('touchend', function() { $(this).removeClass("ui-btn-active"); });