Retaining Default Button Style
When you use the
onClick event handler on a button, it prevents JQM from adding the ui-btn-down style to the button when touched (ie. the button doesn't turn blue). For example:
- <a href="#" onclick="testThis();" data-role="button" data-icon="arrow-r" data-iconpos="right" data-ajax="false">Launch Something</a>
Is there a simple way to use onclick while still allowing JQM to toggle the button style as normal?
thanks.