JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1 id="heading">hallo</h1>
</div>
<div data-role="content">
<a data-role="button" id="changer">Change Header</a>
</div>
</div>
</body>
</html>
JavaScript
function resetButton(button) {
$(button).removeClass('ui-btn-active');
}
$(document).ready(function () {
$("a[data-role='button']").live('click', function() {
resetButton($(this));
});
$('#changer').bind('click', function() {
$('#heading').text('changed');
})
})