This works fine:
<div id='clicker' onclick='alert("clicked")'>clicker</div>
<script> $('#clicker').trigger('click'); </script>
How can I make this work ( without using eval )?
<div id='clacker' onclack='alert("clacked")'>clacker</div>
<script> $('#clacker').trigger('clack'); </script>
Trying to mimic the behavior of the inline onclick attribute, but with my own custom attribute/event, to apply a simple solution to a simple problem.