Remove Image associated with button

I am developing an app where someone can select multiple Images from a gallery. I’ve appended a button with every image which calls the function onclick. How can I remove the image appended with button onclick ?

<div id="images">
    <img src="www.xyz.com/qwert.jpg" class="hi">
    <input type="button" class="multiple">
    <img src="www.xyz.com/qwerty.jpg" class="hi">
    <input type="button" class="multiple">
    <img src="www.xyz.com/qwertww.jpg" class="hi">
    <input type="button" class="multiple">
</div>


Source: html5

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.