Answers for "check if sub value exist in array jquery"

2

jquery check value exists in array

if ($.inArray('example', myArray) != -1)
{
  // found it
}
Posted by: Guest on June-15-2020
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

Code answers related to "check if sub value exist in array jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language