I have a form with an image input and want to reset the whole form along with image input.
Right now the image input does not reset it stays as the one I uploaded latest.
The image is not saved to DB right now.
Can you please provide more info or code sample ? Which component are you using for the image input ?
I am using keenthemes image input control. Mentioned below.
Can you try to use below to remove or cancel the image input attachment:
var input = document.querySelector("#kt_image_4");