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


× 5 = five

 

Search

Recent Templates

  • cf7-installation
  • featured-image
  • Outeredge - Responsive MultiPurpose WordPress Theme
  • Capella Parallax Cafe and Restaurant WordPress Theme
  • Moje - vCard Bootstrap Responsive WordPress Theme
  • AudioGear Prestashop Template 50987
  • Pts GentShop Great Fashion Prestashop 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