Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone
I used jquery.steps.js for wizard type form design. When I am adding select2.min.js for dropdown search box then the dropdown not working. However if I remove jquery.steps.js then the dropdown search working properly also there is no console error.
So I need to both working on the same page. I tried to remove jQuery conflicts but cannot solve. Below is my script Links

enter code here

<script src="~/plugins/jquery/jquery.min.js"></script>
<script src="~/plugins/bootstrap/js/bootstrap.js"></script>
<script src="~/plugins/jquery-slimscroll/jquery.slimscroll.js"></script>  
<script src="~/plugins/jquery-validation/jquery.validate.js"></script>    
<script src="../../plugins/sweetalert/sweetalert.min.js"></script>
<script src="../../plugins/jquery-steps/jquery.steps.js"></script>
<script src="~/plugins/node-waves/waves.js"></script>
<script src="~/plugins/momentjs/moment.js"></script>
   <script src="../../plugins/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js"></script>
<script src="../../plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script src="../../js/admin.js"></script>
<script src="../../js/pages/forms/form-wizard.js"></script>
<script src="../../js/pages/forms/basic-form-elements.js"></script>    
<script src="~/js/demo.js"></script>
<script src="~/select2/dist/js/select2.min.js" type="text/javascript"></script>  


<script>
    $(document).ready(function () {
        $("#ddlsupplier").select2();
    });
</script>


What I have tried:

I tried to remove conflicts below but still no help

$.noConflict();
// Code that uses other library's $ can follow here.
Posted
Comments
Richard Deeming 27-Nov-20 8:18am    
Check your browser's developer console for errors. Then fix those errors.

If you want someone here to help you fix the errors, then you'll need to provide the full details of the errors.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900