how to get nth closest element in jquery code example Example: select parent of element jquery $(this).parent(); // jquery