Here i have code:
<div class="starright"><img src="images/stars1.png" width="30" height="30" /></div>
<div class="starright"><img src="images/stars1.png" width="30" height="30" /></div>
<div class="starright"><img src="images/stars1.png" width="30" height="30" /></div>
<div class="starright"><img src="images/stars1.png" width="30" height="30" /></div>
I want to change onClick image inside, but just on clicked object? Not on all? I have issuse because this is class in css not a ID, is this posible, maybe like onClick This?
Edited. This works great:
function change(element){
element.innerHTML = "[new inner HMTL]";
}
But how to revert it on first image when second click?
Try this code in jquery:
Is what you want?