For example in php I have a list of clients:
foreach($clients as $client)
echo '<li id="client_'.$client->id.'">' . $client->name . '</li>';
What is the correct way to bind a click event to each list item w/o using
onclick="my_function(the_elements_id)"
right in the list item.