EDITABLE CODE:
LiveDemo:jQuery - Working with Attribute Properties
Note:The attribute of the image element is fetched using this method