Reputation: 3323
I currently have the following code:
$( '.spandiv:eq(1)' ).remove();
This very nicely removes the second (as it uses 0-based indexing) item in the span list, which is great. However, I have a question.
Is it possible to remove everything except the second item?
I know I could code up using the lt()
and gt()' but wondered if there was a
not equal` option?
Upvotes: 0
Views: 69