$(...).modal is not a function.
This Error has so many solutions. Basically this is related to jquery and because model is related to bootstrap then we have to apply bootstrap js and bootstrap is depend on jquery then first we apply jquery.min.js and after that bootstrap.min.js.
like this.
<script src="<?php echo base_url() ?>assets/global_assets/js/main/jquery.min.js"></script>
<script src="<?php echo base_url() ?>assets/js/bootstrap.min.js"></script>
Solutions:
1. Apply above step means first jquery then bootstrap.
2. Check jquery is not included twice.
check with find in files using code igniter.
3. Change $.ajax(...) to JQuery.ajax(...).
4. Check using inspect element In console you can check error in which file.
Hope for this you can find error.
No comments:
Post a Comment