I wanted to make this statement using jQuery but cant quite get it to work. In this statement I am clicking on an image in my html and changing it to a new image (img/HeaderImg2.jpg) Please help.
var imageButton = document.getElementById('headerImg');
imageButton.addEventListener('click', function(e)
{
console.log(e);
imageButton.src ='img/HeaderImg2.jpg';
} ,false);