im printing out unordered lists dynamically..something like this
$sql2 = mysql_query("SELECT id, todo FROM todo");
while($row = mysql_fetch_array($sql2))
{
$todo1 = $row["todo"];
$todofeed.='
<ul>
<li>' . $todo1 . '</li>
</ul>
';
}
I want each li element that is printed out to be a link for some jQuery effect and for that I need the text inside each li element dynamically i.e. as and when i click on it.Any way around this?