hai jquery user ^^ i have a problem with ajax, here is the problem :
i have a list of table/data with edit and delete link in file, data.php and i load data.php in my dashboard file named it dashboard.php so this dashboard.php load file data.php result like this : name address control john doe1 anonym delete/edit john doe2 anonym delete/edit john doe3 anonym delete/edit john doe4 anonym delete/edit is it possible that i use the link in data.php to trigger onclick ajax function in dashboard.php ? if it does how ? im really confused with this one T_T i already try this jquery script but it doesn't work $(".delBtn").click(function(){ var del_id = element.attr("id"); var info = 'id=' + del_id; $.ajax({ type:"POST", url:"http://localhost/index.php/superAdmin/delete", data:info, succes:function(){ $(".helper").html("Data deleted").fadeIn('slow').animate({opacity: 1.0}, 2000).fadeOut('slow'); } }); return false; }); pardon my english ^^ -- Putra Prima A 0410630078 Teknik Elektro Brawijaya 3 ipa 2 smunsa 2004 http://siubie.web.id/