I am trying to add an if else statement to the below\[code\]$('#togglediv4').click(function(e){ e.preventDefault(); $('#link4').attr('src','images/contact_link_clicked.png');});\[/code\]I want the image to change back to the original one if there is no click event otherwise all links once clicked will remain stuck on the new image.Therefore if image is not clicked I want to show the original image.\[code\]$('#link4').attr('src','images/contact_link_original.png');\[/code\]