diff --git a/js/wizardwidget.js b/js/wizardwidget.js index 8e4b8e8..4b0333c 100644 --- a/js/wizardwidget.js +++ b/js/wizardwidget.js @@ -14,7 +14,7 @@ $(document).ready(function () { // Manage next step button click $(document).on("click", ".next-step", function (e) { var $tab_active = $('.wizard .nav-tabs li.active'); - var $next_tab = $active.next(); + var $next_tab = $tab_active.next(); var $function = jQuery(this).data('function') || false; if ($function){ @@ -66,4 +66,4 @@ function nextTab(elem) { // 'click' on prev tab function prevTab(elem) { $(elem).prev().find('a[data-toggle="tab"]').click(); -} \ No newline at end of file +}