JSFiddle - React, Tailwind, and code Playground
HTML
<div style="background-color:PapayaWhip;">Some text.
<img src="http://ynternet.sk/test2/close_1.jpg" />
<img src="http://ynternet.sk/test2/close_2.jpg" />
</div>
<div style="background-color:Moccasin;">This are letters
<em>and this are not.</em>
Hello again!
</div>
<div style="background-color:LightGoldenRodYellow;">
<img src="http://ynternet.sk/test2/close_1.jpg" />
<img src="http://ynternet.sk/test2/close_2.jpg" />
<label id="letters">
Letters in new line.
</label>
<img src="http://ynternet.sk/test2/close_1.jpg" />
<img src="http://ynternet.sk/test2/close_2.jpg" />
</div>
JavaScript
$("div").children().click(function() {
alert('child click');
});
$("#letters").click(function() {
alert('Letters Clicked');
});