jquery get id of 3rd parent code example Example: jquery get id of 3rd parent $('#element1').parents().eq(2).attr("id");