how can I stored the value within an a href tag for example my php page does this
echo "<li><a href=\"JavaScript:article('$id')\">".$row['title']."</a> </li>";
which prints this code on my ajax page
<a href="JavaScript:article('40')">What is the difference between Archiving and Trashing an Article? </a>
. I want to save the value within href so that I can use it later. Please note its ajax so location.href doesn't work.