JSFiddle - React, Tailwind, and code Playground
by olli
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css">
<script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>jQuery Template Plugin</title>
</head>
<body>
<script id="simpleTemplate" type="text/html">
<a data-role="button" id="link">this link comes from the template</a>
</script>
<div data-role="page" id="master">
<div data-role="header">
<h1>jQuery Template Plugin</h1>
</div>
<div data-role="content" id="content">
<a data-role="button" id="another_link">this link is enhanced</a>
</div>
</div>
</body>
</html>
JavaScript
$(document).ready(function() {
$('a').live('click', function() {
alert("clicked");
});
$("#simpleTemplate").tmpl().appendTo("#content");
});