Javascript examples for jQuery:Mouse Event
Handle anchor click event
<html> <head> <script src="https://code.jquery.com/jquery-1.9.1.js"></script> </head> <body> <a id="aLink">First Paragraph</a> <script> $("#aLink").click(function () { console.log("Calling function"); });// w ww. ja v a 2 s . c om </script> </body> </html>