jQuery como fazer ID

$('#tagname').attr('id')
Destroyer AJ