find active option by href of active link or active link parents