I want to change a HTML+JS template behavior but i don't want to re do things which are already done. assume we have a hierarchy of elements and looks like the inner one is calling a function on it's onclick
event. but when i select it on the chrome inspector console and check if it has anything for the onclick
it returns null
i think it's developed in a more general way or possibly on other property?
What i want is to find that function wrap it in mine and call it after doing something else.
The hierarchy is like below:
<ul> <li data-id="1234"> <div> <a href="#">the button</a> </div> </li> ... </ul>
whenever the button
is pushed the data-id
is sent to the server via ajax.