remove() multiple elements
I have this query that does what I want it to do, find the class and remove an extra element within its parent:
- $(".emptyTopNavOption").parent().children().first().remove();
But when there are multiple classes, it only deletes the first element in its query. As a successful test, I appended some CSS to ensure the query selected all classes and added a border to each element. So why does remove() not work? Is it a bug or is my query missing something?