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