Have some code
<a href=# onclick=alert("in onclick")> Click me </a>
I want to append an additional event to onclick, e.g. if the user clicks on the link, he gets 2 messages:
- from standard onclick
- from jQuery onclick
Have some code
<a href=# onclick=alert("in onclick")> Click me </a>
I want to append an additional event to onclick, e.g. if the user clicks on the link, he gets 2 messages:
<a href='#' id='your_link' onclick='alert("in onclick")'> Click me </a>
In your javascript :
$('#your_link').click(function()
{
alert('jquery onclick') ;
}) ;