Getting the attributes of a div?

Getting the attributes of a div?

I'm using a jquery plugin called jplayer. I need to "bookmark" the current track.

The only way to know the current file playing is to look at the div called jplayer_playlist_current.

<li class="jplayer_playlist_current">
<a href="#" id="jplayer_playlist_item_1" class="jplayer_playlist_current">Introduction and guidance on usage</a></li>

What I want to get from it is the id, ie:
jplayer_playlist_item_1

I thought that this might cover it:

http://api.jquery.com/attr/

But nothing I do, no amount of googling or plugins, is getting me this result.
Help appreciated - been at it for over half a day now.