In your case I wouldn't use the text of the link, as it's
possible it may change in the future (ie. you need to translate your
website). The better solution is to add custom attribute to links:
And then put the id of the hidden tag there, so you and up with:
|
How to get the text value of a clicked link
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment