Limit scope of search for active
Use closest() instead of parent()