jquery check if is exist or not code example Example: jquery check if exist if ( $( "#myDiv" ).length ) { $( "#myDiv" ).show(); }