I need to select an image by its' src. It is not an option in this case to select by class, id, or name. I am open to using jquery or vanilla javascript or any other method. I am certain I am entering the src properly, but the jquery selectors I am trying to use are not working. Console is not throwing any error messages.
var x = jQuery("img[src='link']");
x.hide();
I have also tried to use the src=$'link' Just to clarify I AM using a correct http: address in my actual code and it definitely matches what is showing up on the live site. Why can I not select my image by src?