How to Change Image Src Attribute Value Using jQuery

To change image source attribute value using jQuery, we make use of attr() function.  Example is given below.

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •