I am using jQuery. How do I extract list data effectively?
My list has:
<li class='add'><a href='#'>Data1</a></li> <li class='add'><a href='#'>Data2</a> </li> ...
My jQuery has:
$('.add').click(function(e){ e.preventDefault(); // Here is to get the value of Data1 and Data2... // How do I alert Data1, Data2 effectively? });
or just