JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<style>
p { height: 30px; width: 150px; background-color: #ccf; }
div {height: 30px; width: 150px; background-color: #cfc; }
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<p>paragraf</p>
<div>kısım</div>
<script>
$("p").click(function(event){
event.stopImmediatePropagation();
});
$("p").click(function(event){
// Bu fonksiyon çalışmayacaktır
$(this).css("background-color", "#f00");
});
$("div").click(function(event) {
// Bu fonksiyon çalışacaktır
$(this).css("background-color", "#f00");
});</script>
</body>
</html>