$ ('img: not (#div_for_img)'). hide (2000); // I try to reduce all the pictures except those that with id #div_for_img, as a result, do not see at all, reduce everything

Pictures that I don’t want to touch:

Closed due to the fact that the essence of the question is not clear to the party PashaPash ♦ 5 Aug '16 at 11:10 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • $ ('img [id! = "div_for_img"]'). hide (2000); - $ ('img'). not ('# div_for_img'). hide (2000) does not work; - does not work - Vanya
  • My version and the @ Mihanik71 version work for me. Perhaps the id "div_for_img" is not registered for img tags, but for divs in which these pictures are located ... - Zim

2 answers 2

$('img[id!="div_for_img"]').hide(2000); 
  • does not work ((( - Vanya
  • My version and the @ Mihanik71 version work for me. Perhaps the id "div_for_img" is not registered for img tags, but for divs in which these pictures are ... - Zim
  • And everything figured out, thank you very much - Vanya
  • so what was the problem? - Zim
  • id is not for tags as you said - Vanya
 $('img').not('#div_for_img').hide(2000); 
  • does not work ((( - Vanya