Create A Nested Filter
//a filter allows you to reduce the set of matched elements
//to those that match a given selector. In this case the query
//removes anything which doesn't (:not) have (:has) a child with
//class "selected" (.selected)
.filter(":not(:has(.selected))");