[jQuery] Confirm Deletion

[jQuery] Confirm Deletion


i need to delete a row from mysql DB, click delete buttonn and fadeout then
delete record from DB.
HELP PLEASE ...
Below is my code:
$(document).ready(function() {
            $("a.delete").click(function() {
             if (confirm('Are you sure you want to delete ? - ' + this.id)) {
                $(this).parent().fadeOut(1000, function() {
                    $(this).parent('tr').remove();
                    //delete(this.id);
                    window.location.href = 'test.php?delnews=' + this.id;
                    alert('DELETED');
                });
             }
            });
        });
--
View this message in context: http://www.nabble.com/Confirm-Deletion-tp20869801s27240p20869801.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.