I have a bunch of elements that look like this:
html php
$('.tags').hover( function() { console.log( 'hovering on' , $(this).attr('id') ); }, function() {} );
Second empty function is for mouse out, you'll probably want to do something on that event as well.