How to cancel change event for accordion controls

Simbian picture Simbian · Dec 1, 2010 · Viewed 9k times · Source
$("#accordion").accordion({
    change: function (event, ui) {
        alert('event have to be changed')
    },
    changestart: function (event, ui) {
       return false;
    }
});

Is it possible to cancel the change event?

Answer

Martin Wawrusch picture Martin Wawrusch · Jun 28, 2011

I am not sure about change but for other events in jqueryui returning false cancels the event.