jquery check if .find resturns no elements code example Example: jQuery exists function if ($("#myElementID").length){ //I exist }