jquery traverse up dom to element code example Example: jquery dom traversal parent $( "li.item-a" ).parent().css( "background-color", "red" );