More

jQuery: How To Target Image By src

In most cases, you'll have various options available to you for targeting an image, but if for some reason you have no other way of getting to an image, and you have access to the header data information then you can use some jQuery magic.

Below is the one line of code you need to get it done.

Done and done…Boom!

Target Image By src
$("img[src='image-urk.jpg']").hide();
Glenton
I'm an experience designer. I spend my days and nights on creating designs, writing code, and digital marketing. I specialize in helping small businesses integrate their existing business systems with modern SaaS tools to gain an edge in the marketplace.

Leave a Reply

Your email address will not be published. Required fields are marked *

Login