I am using nicescroll in my application. I have dedined like
$("#Total").niceScroll({
cursorwidth: '8px',
cursorborder: 'none',
cursorborderradius:'0px',
cursorcolor:"#39CCDB"
});
but I don't want to give the styles as above. I want to apply these using a class.For that I have implemented like
.scroll {
cursorwidth: '8px',
cursorborder: 'none',
cursorborderradius:'0px',
cursorcolor:"#39CCDB"
}
and
var scrollbar = $("#Total").niceScroll({});
scrollbar.addClass("scroll");
but is not working,tell me how to apply stylings with a class for nicescroll.