I got a div, and to make it fancier I use the SlimScroll jQuery plugin on that div
$('#scrollable').slimscroll({
color: '#900',
size: '8px',
width: '300px',
height: '500px'
});
now there's a moment when I want this div not to have this property anymore (but to have the browser default scrollbar). How can I remove the slimscroll
?
$("#scrollable").slimScroll({destroy: true});
I made this function which works great in my case
function destroySlimscroll(objectId) {
$("#"+objectId).parent().replaceWith($("#"+objectId));
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With