Basically i have a button for which i am trying to make the background change when the user clicks on it.
I know how to do it but i need to use it in a img tag, but it is not working - when i click the button it does not load the image onto it
any help would be appreciated
HTML
<img class="statusYes" src="Buttons/Button-Yes.png" ></img>
jQuery
$(".statusYes").click(function () {
$(this).css('background-image', 'url(Buttons/Button-No.png)');
});
background-imageproperty, or that you can't see thebackground-imagebecause there's an image, the actualimg, in the way of thebackground-image?</img>really? And<input>=<img>?