Backing up set to get those not previously selected
I'm sure this is simple.
Consider:
- <div>
- <div id="goodpage1">
- </div>
- <div id="goodpage2">
- </div>
- ...
- <div id="badpage1">
- </div>
- <div id="badpage2">
- </div>
- ...
- </div>
I wish to show the good pages and hide the bad pages.
Can I get a set of those with 'good' in the id, show them, then somehow get a set of the elements that weren't showed so I can hide them, or must I now explicitly search for those with 'bad' in the id (or not 'good')?