I am trying to click to slide to content in a scroll-able div but its not sliding, this is the JSfiddle
The JS I am trying is following
$(".nav > li:nth-child(1)").click(function() {
$('.scrollable_content_main').animate({
scrollTop: $("#tab1").offset().top
}, 1000);
});
$(".nav > li:nth-child(4)").click(function() {
//alert();
$('.scrollable_content_main').animate({
scrollTop: $("#tab4").offset().top
}, 1000);
});