open_in_new
content_copy
// Testing whether a selection contains elements. if ( $( "div.foo" ).length ) { ... }