Answers for "how to make check if using jquery object exists"

10

check element exist in jquery

if ($('.element').length) {
  // there is at least one element matching the selector
}
Posted by: Guest on May-16-2020
0

Is there an “exists” function for jQuery

if ($(selector).length)
Posted by: Guest on May-19-2020

Code answers related to "how to make check if using jquery object exists"

Code answers related to "Javascript"

Browse Popular Code Answers by Language