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
?
I made this function which works great in my case
function destroySlimscroll(objectId) {
$("#"+objectId).parent().replaceWith($("#"+objectId));
}