showing results for - "jquery if has parent"
Ainsley
09 Sep 2019
1if ($(this).parents('.last').length) {
2    // element has an ancestor element with the class "last"
3}