jquery to check a page has a specific element code example Example: jQuery exists function if ($("#myElementID").length){ //I exist }