I need id value of the anchor tag.It is not working.The value is coming undefined.
This my code:
HTML Code:
<a href="#" önclick="return listname1(this)" id="hollywood">A</a>
javascript code:
function listname1(list){
var abc=list.text;
alert(abc);
var category=document.getElementById('hollywood').value;
alert(category);
}