I have two JQM
buttons:
<a id="clearA" href="#" data-role="button">Clear a</a>
<a id="clearB" href="#mainPage" data-role="button">Clear b</a>
And I am wiring up the click event for (hyperlink/button "clearA") like this:
$("#clearA").click(function (e) {
e.stopImmediatePropagation();
e.preventDefault();
console.log("Me? I got clicked");
});
When I click "clearA" the event is fired but the button doesn't show its pressed animation/state. If I click the non wired up button "clearB", the button animates.
Why doesn't button "clearA" animate?
UPDATE I am using JQM 1.1.0
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.js"></script>