Image of selected product to show before submitting

Hi everyone
I have a form where I select diffrent product categories.
Once my product is selected I would like the product’s image to show before submitting (so that I am sure the selected product is the correct one)

Any help would be much appreciated !