WEB AND IT

Rename Attribut in jQuery

Share on FacebookTweet about this on TwitterPin on PinterestShare on LinkedInShare on Google+Share on TumblrEmail this to someone

There are couples script plugins available online, but I made this one more straight-forward and easier to understand.
In order to see the result you will need to see the changes of attribut using "inspector" in mozilla, or "developer tools" in Chrome.
rename_attribute
But here I use image to make it easier to see so you will understand that this plugin is renaming the src attribut. Without src attribut the image will not loaded at all. so it is really good to make the loading faster rather than hiding the image itself.

Related posts:

Leave a Reply

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