Bootstrap 3.0 & NiceScroll 3.5.0

I have a problem with Bootstrap 3.0

and NiceScroll 3.5.0

. These two plugins require jQuery, however Bootstrap.js requires jQuery 1.9.1

or higher and NiceScroll does not work with this version. Now I am using jQuery 2.1.3

. What should I do, I can use both Bootstrap and NiceScroll?

+3


source to share


2 answers


or you can consider $. noConflict ()

you just need to load the plugins in the correct sequence. In your case, v2.1.3 is your major version, so download it first. then download v1.9.1 and then download,



after that call jQuery.noConflict, you will have $ pointed back to v2.1.3

<script src="//code.jquery.com/jquery-2.1.3.js"></script>
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script>
  jQuery.noConflict( true );
</script>

      

+2


source


On the NiceScroll GitHub page you can find version 3.6.0 which is more recent than the other and works with jQuery 1.8.3+: https://github.com/inuyaksa/jquery.nicescroll



+3


source







All Articles