Friday, July 1, 2016

Mootools conflicting with Bootstrap Carousel


The mootools-more.js conflicts with the Twitter Bootstrap Carousel.

Use Bellow code

<script type="text/javascript">
jQuery(document).ready(function(){
if (typeof jQuery != 'undefined' && typeof MooTools != 'undefined' ) {
// both present , kill jquery slide for carousel class
(function($) {
$(document).ready(function(){
$('.carousel').each(function(index, element) {
$(this)[index].slide = null;
});
});
})(jQuery);
}
});
</script>

No comments:

Post a Comment