Okay
  Public Ticket #2057997
Error in Jquery file
Closed

Comments

  • ITWebServices started the conversation

    while import script 

        <script src="assets/js/jquery.bootstrap.wizard.min.js"></script>
        <script src="assets/js/jquery.validate.min.js"></script>

    Shows error like

    Uncaught TypeError: element.find(...).tab is not a function

    and also onClick next button
    through error like

    Uncaught TypeError: $navigation.find(...).tab is not a function

  • [deleted] replied

    Hi ITWebServices,

    This page "forms-wizard.html" includes these resources:

    medium
    (view large image)

    So that issue is not present, I can navigate through tabs:

    https://d.pr/v/1yzIPk

    Please make sure you include also bootstrap.js file as well.

  • ITWebServices replied

    Hi Sir,

    I have worked on form wizard and find that it's working fine normally but when I'm using form wizrd inside modal it's not changing tab-pane

  • [deleted] replied

    Hello ITWebServices,

    In order to activate form wizzard on modal, you must trigger the initialization after the modal is opened, so it should be basically like this:

    $myLink.modal( 'show', function() {
     $myWizardForm.bootstrapWizard({
        tabClass: "",
        onTabShow: function($tab, $navigation, index) {
            //setCurrentProgressTab($myWizardForm, $navigation, $tab, $progress, index);
        },
        onNext: checkFormWizardValidaion, // Must be defined if assigned (optional)
        onTabClick: checkFormWizardValidaion, // Must be defined if assigned (optional)
     });
    } );

    The form validation function is simple boolean return function:

    medium
    (view large image)


    I hope this will work for you.