i have a little problem with image upload preview. Here's the preview of the element :
And this is the code :
<div class="img-container">
<img id="preview-1" src="" alt="" />
<div class="more">
<img id="preview-2" src="" alt="" />
<img id="preview-3" src="" alt="" />
<span>Max 3 images.</span>
</div>
<label for="upload-btn" class="button">
<img src="ssts/img/svg/upload.svg" alt="" />
<span>UPLOAD</span>
<input id="upload-btn" name="upload" type="file" accept="image/*"/>
</label>
</div>
My problem is, how do i upload more than one image in single button and it will automatically show the preview in the element ? And after all of the element filled, the upload button
will change to "Remove" that if clicked it will remove all the preview ? Thanks in advance!
UPDATE
the most important question is, "showing all of choosen images, and automatically show to the preview"