NB: Basically it would be enough to find('.itemslist') here. Adding '.selected' and '.items' to the list prevents the dropdown from closing when the user is scrolling while the mouse hovers over the footer, search and the actual select element.