Hi, I have a page where clicking on a video title opens a player in the middle of the screen.
Attached photo:
What I do not know how to do is to select all the elements that are not this player and make them darken. The closest thing I've found has been this (taken from another Stack Overflow thread):
p.title:not(:first-of-type)
But it does not work for what I want since not all the elements are p (nor any similar type between them) nor of the same class. I've tried this but it only darkens the player:
$("#foto1").click(function(){
$("#video1").fadeIn(1000);
$("#x").show();
$("iframe:not()").css("opacity","0.6");
});
If you need more code, say it in the comments, although I think that will be necessary, since it is only that line of code that I can not get it to work properly. Greetings.