jQuery - if element exist with .length

0 votes
181 views
added Jan 28, 2019 in jQuery by LC Marshal Captain (25,790 points)
if ($('.SearchBoxFilters').length) { 
 alert('test');
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...