d
Amit DhamuSoftware Engineer
 

Check If Element Exists

1 minute read 00063 views jquery
if ($('div').length) {
  // div exists
} else {
  // no divs exists
}