I have a list, which has an image, and an 'x' image (Close.gif) I am not sure how to make the ListItem be removed when the 'x' image is clicked.
<ul id="cardList" class="cardList">
<li id="1" class="ui-state-default" data-type="cover" onclick="onClickCard(this)">
Cover 00
<img src="./Close.gif" alt="" onclick="onClickClose(this)"/>
</li>
</ul>
I only know how to have the image removed when the 'x' mark is clicked.
var onClickCard = function(asd){
$(asd).remove();
}