jquery - disable img tag -


how remove href attribute of img on page using jquery?

this img tag not have class or id referencing

image tag not have href attribute have src attribute image location

using jquery selector can remove src attribute

please check on parent object, if has either id or class attribute can use 1 of following.

if parent (for example consider div) has id.

$("div#your-id img").removeattr('src') 

if parent has class.

$("div.your-class img").removeattr('src') 

Comments