[Solved] Get link’s text in javascript
[ad_1] $(“.myid”).click(function (event) { // I want to prevent the elements default action (thanks @ Rajaprabhu Aravindasamy). event.preventDefault(); alert($(this).text()); }); JSFIDDLE. Read more about preventDefault here. 1 [ad_2] solved Get link’s text in javascript