I have one img div. Onclick on it, AJAx inserts into database smthng. I want to change img add.png to added.png on click.
First click: add.png -> added.png
Next click: added.png -> add.png etc.
I try:
success: function(){
$('.paste_here').html("<img src=\"add.png\">");
}
So, how can I do to change the add to added and added to add on each click in success part???