I am trying to archive a database entry using .post, but I am getting this error: "Uncaught SyntaxError: Unexpected token ("
I am defintely still in the learning phase of jQuery, so any help is appreciated!
//Archive Table Row
function archiveEntry(id){
function(){
if (confirm("Archive Fill #"+id+"?")) {
$.post('/elevator/scripts/php-inc/archive.php', {id: +id, ajax: 'true' },
function(){
$(".row_"+id).fadeOut();
});
}
else {
return false;
}
}
}