$(document).ready(function() {$('.del').live("click",function(){var ID = $(this).attr("id");var dataString = 'key='+ ID;if(confirm("Sure you want to delete this update?")){$.ajax({type: "POST",url: "test/del.php",data: dataString,cache: false,success: function(html){$("#st_"+ID).slideUp();}});}return false;});});