Two way scrolling in single div

Make Vertical Scroll And Horizontal Scroll Two Way Scroll Bar

Auto update second scrollbar
Two way scrolling in single div
$(function () {
    // Vertical Scroll
    $(".wrapper11").scroll(function () {
        $(".wrapper22")
            .scrollTop($(".wrapper11").scrollTop());
    });
    $(".wrapper22").scroll(function () {
        $(".wrapper11")
            .scrollTop($(".wrapper22").scrollTop());
    });
    // Horizontal Scroll
    $(".wrapper1").scroll(function () {
        $(".wrapper2")
            .scrollLeft($(".wrapper1").scrollLeft());
    });
    $(".wrapper2").scroll(function () {
        $(".wrapper1")
            .scrollLeft($(".wrapper2").scrollLeft());
    });
});
http://jsfiddle.net/lesson8/wNx57/show/
Two way scrolling in single div Two way scrolling in single div Reviewed by Bhaumik Patel on 6:24 AM Rating: 5