Select all item where id isn't an id
问题 All I want is that on item1 click to hide all items where id isn't item1 . The html: <span id="select1">item1</span> <span id="2">item1</span> <div style="clear:both"></div> <img src="http://www.lorempixel.com/100/100" id="item1"> <img src="http://www.lorempixel.com/100/100" id="item1"> <img src="http://www.lorempixel.com/100/100" id="item1"> <img src="http://www.lorempixel.com/100/100" id="item1"> <img src="http://www.lorempixel.com/100/100" id="item2"> <img src="http://www.lorempixel.com