I need to get value from a href button. Here I have just developed a code which show all href value. Actually I need to get value from where I click.
here is my code
$(document).ready(function() {
$("a.me").click(function(){
var number = $('a').text();
alert(number);
});
});
In jQuery you can use $(this) to reference the element that was clicked (or otherwise used)
Like so: