Hi,

I like to scroll all the scroll bar at the time.first scroll is working fine.but other scroll not working

anyone have idea

<html>
    <title></title>
    <head>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script>
    $(document).ready(function(){

    $('.box').each(function(){
            $(this).bind('scroll',function(){
                var leftPos = $('.box').scrollLeft();
                var leftPos = $('.box').scrollLeft(leftPos);
            });     
    });
    });
    </script>
    <style>
        .box{ width:500px; overflow-x:scroll; }
        .clear { clear:both;}
        .content{ height:50px; width:9000px; background:#ccc;}
    </style>
    </head>
    <body>
    <div class="box clear">
        <div class="content">asrsre</div>
    </div>
    <div class="box clear">
        <div class="content">asrsre</div>
    </div>
    <div class="box clear">
        <div class="content">asrsre</div>
    </div>
    </body>
</html>

Regards,
Developer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.