I’m like 2 hours new to jQuery.
I have a list that has usernames and an image next to each username. If they click on the the image next to the username that username will get deleted.
Example:
<table>
<tr><td>MARK</td><td><img src=delete.jpg id=MARK></td></tr>
<tr><td>DAVE</td><td><img src=delete.jpg id=DAVE></td></tr>
</table>
Those usernames are spit out of a MySQL database. How do I get jQuery to figure out which image is clicked? Since I can’t hardcode the image id into the script….
Thank you
Just use onclick function –