Screenshot:
Hi,
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\">
$(\'#basket_delete_button\').click(function(){
var deleteditems = $(\'input:checkbox[name=\"delete_basket[]\"]: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 ?





Rating:
The post sql – jQuery Post Checkbox Value For Multiple Delete From Database appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/sql-jquery-post-checkbox-value-for-multiple-delete-from-database.html
No comments:
Post a Comment