JSFiddle - React, Tailwind, and code Playground
HTML
<div class="group">
<div class="A1_B1 symptom">
<ul><li><a href="#" class="hit">Click Symptom</li></ul>
</div>
<div class="A2_B2 remedy">
<ul><li><a href="#" class="hit">Click Remedy</li></ul>
</div>
</div>
JavaScript
$(document).on("click", ".hit", function (ev) {
if($(this).parents(".symptom").length>0)
alert("Symptom Clicked");
if($(this).parents(".remedy").length>0)
alert("Remedy Clicked");
});