50
rated 0 times
[
51]
[
1]
/ answers: 1 / hits: 18899
/ 12 Years ago, sat, february 2, 2013, 12:00:00
i need help with this one. I have my function working well with ajax, but i need a ok / cancel delete confirmation box before i send ajax request in order to remove item from database. This is my code:
delete_article = function(article_id){
$.ajax({
type:POST,
url: <?php echo base_url()?>admin/article/delete_article,
data: article_id=+article_id,
asynchronous: true,
cache: false,
beforeSend: function(){
},
success: function(){
$('#articletr'+article_id).hide();
}
});
}
})
More From » jquery