Please use `.closest('selector')` instead of `.parent().parent()`.