0
$(document).ready(function() {
$("#accordion").accordion({
change: function (event, ui) {
alert('control changed')
},
changestart: function (event, ui) {
alert('control changing')
}
});
$("#accordion").bind("accordionchange", Change);
$("#accordion").bind("accordionchangestart", ChangeStart);
function Change(e, ui) {
// code for canceling both events
alert('bind:changed')
}
function ChangeStart() {
// code for canceling both events
alert('bind:changing')
}
})
如何通過新的綁定事件取消這兩個事件取消jQuery的手風琴兩個事件
這並不工作,因爲只刪除新(綁定)事件。我在accourdion內宣佈的事件仍然存在 – Simbian 2010-11-30 13:44:21