I try to trigger a click event if someone clicks on a an <a>
nchor that has an <object>
child:
$(function() {
$("object").click(function() {
alert("test");
return false;
});
});
The markup:
<a>
<object data="menu-item-2.svg" type="image/svg+xml"></object>
</a>
I would expect that clicking on an <a>
would trigger a click-event. It doesn't. Still, It would work with a mouseenter event.
How do I make it trigger a click event?