JavaScript Tutorial

Get the ID of element

e.g. $("#elementid div:firstchild").attr("id");