I'm trying to use jQery mCustomscrollbar plugin in a VF page. I have the following code -
<script type="text/javascript">
$j = jQuery.noConflict();
</script>
<script type="text/javascript" value="{!URLFOR($Resource.myPage, 'jquery.mCustomScrollbar.concat.min.js')}"></script>
<apex:stylesheet value="{!URLFOR($Resource.myPage, 'main.css')}"/>
<script type="text/javascript">
$j(document).ready(function()
{
$j(".news-content div.scroll").mCustomScrollbar({
scrollInertia:400,
mouseWheelPixels:40
});
});
</script>
But the scrollbar is not working and I see the following error in my javascript console -
Uncaught TypeError: Object [object Object] has no method 'mCustomScrollbar'
Do I need to change anything in the plugin js file?