mstratman / jQuery-Smart-Wizard

flexible jQuery plug-in that gives wizard like interface
http://mstratman.github.com/jQuery-Smart-Wizard/
303 stars 164 forks source link

Return false issue on event binded elements #60

Open jeronimo opened 10 years ago

jeronimo commented 10 years ago

return false; should be changed to e.preventDefault(); everywhere because it is impossible to bind other events on the same elements. i.e.

    $($this.buttons.next).click(function() {
        $this.goForward();
        return false;
    });        

To

   $($this.buttons.next).click(function(e) {
         e.preventDefault();
        $this.goForward();
    });