jQuery Image Source Swap with attr() function

Last updated on
Categories Under // ideasA Template Review by . No Comments

I have made a small jQuery snippet to demo the image swapping with attr() funciton.  The demo uses 2 images with classes img1 and img2 respectively.  On a click of a button, the images are swapped.

Basically the script stores “src” value into a variable and then it is  used to swap 2 image sources.

Demo : Demo Page For jQuery Image Source Swap with attr() function

Disclosure: Some of the links in this post are "affiliate links." This means if you click on the link and purchase the item, I will receive an affiliate commission.

Latest WordPress Templates

Leave a comment


+ nine = 15

 

Search

Recent Templates

  • cf7-installation
  • featured-image
  • TopClass WordPress Theme
  • Impala Boulevard WordPress Theme
  • Right Way WordPress Theme
  • Shutter WordPress Theme
  • Sync WordPress Theme

DISCLOSURE OF MATERIAL CONNECTION

Some of the links on this site are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my article readers.

WordPress Expert at $14/hour

Hi, I am the webmaster who run this website. I am a WordPress Integrator. If you are need of

-- Adding content to WordPress blog
-- Help in managing plugins and upgrading them.
-- Backing up WordPress Blogs.
-- Modifying theme to suit new ideas and designs.
-- Converting a PSD/JPG/PNG into WordPress

Please contact me at vr@pixelthemes.com or through contact form.

Become Our Fan in Facebook