Skip to content Skip to sidebar Skip to footer

In Jquery, How Do I Pass An Event To A Parent Anchor If Needed?

I am in clojurescript using jQuery but the answer should be the same for cljs and js I think. I have a helper function which creates creates an anchor element then puts an icon ele

Solution 1:

If I understood it right it seems like you are hooking up the click event for both the anchor and icon.

Or the anchor and the icon have the same class name.

e.g:

<ahref="#"class="my-btn-type" ><imgsrc="../img/icon.png"class="my-btn-type" /></a>

Post a Comment for "In Jquery, How Do I Pass An Event To A Parent Anchor If Needed?"