• Resolved zdwebmaster

    (@zdwebmaster)


    Hi everyone,

    I’m calling scripts like this :

    <script type=’text/javascript’ src=’js/jquery-3.6.1.min.js?ver=3.6.1′ id=’jquery-core-js’></script>
    <script type=’text/javascript’ src=’js/jquery-migrate-3.4.0.min.js?ver=3.4.0′ id=’jquery-migrate-js’></script>
    <script src=”https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js”></script&gt;

    and I have error at here :

    // Uncaught TypeError: jQuery(…).modal is not a function

    function showModal() {
    jQuery(‘#wpdm-locks’).modal(‘show’);
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @zdwebmaster

    Greetings for the day.

    Please ensure that jQuery is enqueuing and loading initially before every other script and that the source path is valid.

    I hope it will resolve the issue.

    Regards

    Hello @zdwebmaster

    I hope your referred query has been resolved.

    Have a good day.

    Thread Starter zdwebmaster

    (@zdwebmaster)

    Hi @humayonk

    No it’s not working.

    When I using “Must Agree with Terms” lock option, modal is working without error. But when I activated “WPDM – Form Lock” option from lock options and select form, modal is not working with this error :

    // Uncaught TypeError: jQuery(…).modal is not a function

    all scripts and source paths same, just I want use form lock option.

    Do you have any idea?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: jQuery(…).modal is not a function’ is closed to new replies.