Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check element exist in jquery

if ($('.element').length) {
  // there is at least one element matching the selector
}
 
PREVIOUS NEXT
Tagged: #check #element #exist #jquery
ADD COMMENT
Topic
Name
2+1 =