Screenshot:
I want to delete rows from database with jQuery as on the screenshot. I watch more than 150 tutorials about jQuery. But I'm rookie. I know the usage of jquery post. But I couldn't handle it exactly.
<script type="text/javascript">
$('#cart_delete_button').click(function(){
var deleteditems = $('input:checkbox[name="delete_cart[]"]:checked')
.map(function() { return $(this).val() })
.get()
.join(",");
//alert(deleteditems);
$.post('post.php',{deleteditems: deleteditems},function(data){
$('.loading').text(data);
});
});
</script>
I wrote this code for deleting but I want to remove tr instantly. How can I do that?