Stop event bubble
Description
The following code shows how to stop event bubble.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css">
<script type='text/javascript'>
$(window).load(function(){<!-- w ww . j a v a 2s . c om-->
$(document).on('click', '#expand', function (e) {
e.stopImmediatePropagation();
e.preventDefault();
console.log('ekb');
});
});
</script>
</head>
<body>
<div data-role="page" id="city">
<div data-role="content">
<div data-role="collapsible-set" data-theme="d"
data-content-theme="d">
<div data-role="collapsible" id="expand">
<h3>Header</h3>
<p>hh</p>
</div>
</div>
</div>
</div>
</body>
</html>