d
Amit DhamuSoftware Engineer
 

Check If Element Exists

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