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
If you want to support non touch devices you should add timeout. $('.btn' ).on('touchend click', function() { var self = this; setTimeout(function() { $(self).removeClass("ui-btn-active"); }, 0); });