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