Returning false does nothing to cancel the event in jQueryUI, you need to call preventDefault () on the event.
$("#accordion").accordion({ changestart: function (event, ui) { event.preventDefault(); } });
This should work with all event methods, including autocomplete. Itβs convenient if you want to include several customizable options in your autocomplete menu, which you want someone to select, but really donβt want to add to the input to which it is attached. :)
Robee shepherd
source share