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

Latest WordPress Templates

Leave a comment

7 − two =



Recent Templates

  • Organo Prestashop Template 48995
  • Greenwich Village – One Page WordPress Theme
  • Coruscate - Multi-Purpose WordPress Theme
  • Gravity - Creative MultiPurpose WordPress Theme
  • Estate Plus - Responsive Real Estate WordPress Theme

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