JQuery Check if Element Exists Published January 21, 2016 by Praveen Anaparthi if ($('#myElement').length > 0) { // it exists } Related tutoirals Published in Javascript / JQuery Snippets jQuery Previous Post Check for Empty Elements Next Post PHP’s built-in Web Server