I have made a cart and the cart has remove item button, but the jQuery is not working to remove the item from the cart. Am I missing something basic here ?
I have given class remove1 to the remove button image and using the following jQuery… even I am not getting the alert.
HTML:
<img src='remove.gif' class='remove1'>
JS:
$(".remove1").click(function(){
alert("hii");
$(this).parent().remove();
});
1 Answer