I have a simple link:
<a class="myid">Myid Text</a>
Whenever the link is click, I want to retrieve "Myid Text" by displaying it in a java script. How will I do that? Below is my initial javascript code:
$(".myid").click(function (event) {
alert("Display link's text here..!!");
});
Aucun commentaire:
Enregistrer un commentaire