我可以阻止此代码刷新页面吗?
如您所见,我从普通的 click_event 提交了一个 post 操作,因为 live 不支持提交事件,所以我需要它。
jQuery('.verwijder').live('click', function() {
t=$(this);
t.parents(".paneltbnote").animate({ opacity: 'hide' }, "slow",function(){
t.parents(".wrappertbnote").remove();
settbnotecounter();
$db_tbnoteid = t.parents(1).children('.frmnoteid').val();
$.post("tbnotesact.php", {
noteid: $db_tbnoteid,
actie: "verwijder",
tijd: timestamp
}, function(xml) {
// hier nog iets doen
berichtentoevoegen(xml);//feedback
});//einde post methode
});// einde callback animate methode
return false;
});//einde binding click event