'+id+'">Update</a></td></tr>');
}
}else{
	$("#itemlist").append('<tr><td colspan="3" align="center">No Item Found</td></tr>');
}
		},function(transaction,err){
			alert('No table found. Click on "Create Table" to create table now');
		})
	})




//setTimeout was used to execute codes inside it to be loaded after records are loaded/fetched.

setTimeout(function(){
	$(".deleteitem").click(function(){
var sure=confirm("Are you sure to delete this item?");
if(sure===true){
	var id=$(this).dat