I have a bunch of elements that look like this:
html php
mouseover should do the trick.
$('.tags').mouseover(function() { alert(this.id); });
Note that if you want to know when the mouse leaves as well, you can use hover.