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