Answers for "check ele exist jquery"

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
-1

jQuery exists function

if ($("#myElementID").length){
   //I exist
}
Posted by: Guest on July-22-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language