I have list items in an unordered list that are calling functions via jquery click events. The problem is the li is calling its function then calling the parent ul function. I just want the function called that I am referencing with the id. Is it a parent-child issue?
<ul id="mainlist">
<li id="item1">list1</li>
<li id="item2">list2</li>
</ul>
Jquery
$("#mainlist").click(function {
someFunction();
});
$("#item1").click(function {
someOtherFunction();
});