I have a button on my html page that when I click it I would like it to asynchronously change a specific image on my page. So I have something like:
<a href="/test/page"> button </a>
And I would like that to change my image here:
<div id="container" style="display: none">
<img src="/test/image.png" />
</div>
I think I'm suppose to use ajax here but I am very new to web development and I'm not sure, and suggestions would be appreciated.
Note: I would like this to happen without loading a new page, just reloading the image.