html - Change an image without refresh whole page -


i have image control in div. under image showing button change image. on change image replacing last image new image in image folder. previous image , new image path same.

so how show new image without refresh page.

how changing image in folder.

on button click event can this.

you can force browser reload image passing variable so:

 clickfunction()  {  d = new date();  $("#myimg").attr("src", "/myimg.jpg?"+d.gettime());  } 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -