Click one of 2 images, one become colored another one grey out

Click one of 2 images, one become colored another one grey out

How to do when i Click one of 2 images, one become colored another one grey out??

pls tell me as many methods as possible

also, if these two images has same class, can i archieve this effects using $(selector).each(function(){   }) ??

thanks thanks in advance