I see in jQuery UI accordian you can use the space bar to toggle active headers. How can one disable this? I don't want the user to use keyboard to interact with the accordion.
if you don't need the "_keydown" function at all, I guess you can just delete it.
delete($.ui.accordion.prototype._keydown);
if you want to change or override the functionality of the "_keydown" function and don't want to hack it into the original file you could do:
$.ui.accordion.prototype._keydown = function( event ) {
// your new code for the "_keydown" function
};
hope that helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With