I'm having problems understanding how preventDefault function works. I created a simple jsfiddle, but still, selections and expansion works and not prevented.
Any help is appreciated, thanks.
EDIT: How to prevent selection if page is not valid? Here's a piece of code:
panelBar.bind("select", function (e) {
//some code here
if (!isValid) {
e.preventDefault(e); //doesn't work
//this.select('#firstStep'); //doesn't work
}
});