Hi, I would like to pass a links text value to a javascript function, but the catch is I don't want to use the "getElementByID" function because I have a lot of links, and I really don't want the all to have id's
I was thinking something along the lines of this:
-
<a href="#" onclick="addToList(this.innerHTML); return false;">Some value</a>
-
I just want an easy way to access the <a> anchors text value (without using getElementByID) and passing that value to a javascript function. Any help is appreciated, thanks.