JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<style>
</style>
<script>
$(document).on("pageinit", "#page1", function(){
$("ul li").click(function(event){
alert("List item has been clicked!");
});
$("#btn1").click(function(event){
alert("Button1 has been clicked");
});
$("#btn2").click(function(event){
event.stopPropagation();
alert("Button2 has been clicked");
});
});
</script>
</head>
<body>
<div data-role="page" id="page1">
<div data-role="header">
<h1>Header</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li>
<p>HEllo</p>
<input type='button' id='btn1' value='without event.stopPropagation()'>
</li>
<li>
<p>Hiii</p>
<input type='button' id='btn2' value='with event.stopPropagation()'>
</li>
</ui>
</div>
<div data-role="footer" data-position="fixed">
<h1>Footer</h1>
</div>
</div>
</body>
</html>