jquery-confirm
jquery-confirm copied to clipboard
Uncaught TypeError: $.confirm is not a function - jQuery Version
I am using jquery confirm https://craftpip.github.io/jquery-confirm/
I am getting Uncaught TypeError: $.confirm is not a function - when I directly put the below code
$(document).ready(function () { // (function ($) { $.confirm({ title: 'A secure action', content: 'Are you sure to delete the selected record(s)', icon: 'fa fa-question-circle', animation: 'scale', closeAnimation: 'scale', opacity: 0.5, buttons: { 'confirm': { text: 'Proceed', btnClass: 'btn-blue', action: function () { $.confirm({ title: 'This maybe critical', content: 'Critical actions can have multiple confirmations like this one.', icon: 'fa fa-warning', animation: 'scale', closeAnimation: 'zoom', buttons: { confirm: { text: 'Yes, sure!', btnClass: 'btn-orange', action: function () { $.alert('A very critical action triggered!'); } }, cancel: function () { $.alert('you clicked on cancel'); } } }); } }, cancel: function () { $.alert('you clicked on cancel'); }, moreButtons: { text: 'something else', action: function () { $.alert('you clicked on something else'); } }, } }); //})(jQuery); });
Notification:355 Uncaught TypeError: $.confirm is not a function
at HTMLAnchorElement.
have the same issue, dont understand why, i'm importing by cdn and installing the module in project and it doesn't work at all, if did u figure out how to fix this let me know it would help more then one ! Thx!
Please try CDN, or check page source to confirm your links are properly linked to the local file.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
Thank you, for information