jquery selector ancestor has class code example Example: select parent of element jquery $(this).parent(); // jquery