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
Post a Comment