1

Here's my HTML, first the <div id="tablebody">, I used a script that appends a <tr> content inside these div which has a css property of "overflow:auto".

Once the contents have overflowed inside, the scroll-bar always appeared by default which was supposed to be the customized one from mCustomScrollbar from the script I called.

I don't know how to make it fires the div's scroll-bar..

<html>
<head>
<title>Admin</title>
<link rel ="stylesheet" type="text/css" href="css/admin.css"/>
<link rel="stylesheet" type="text/css" href="jquery.mCustomScrollbar.css"/>       

<script  src="js/jquery-1.9.1.js"></script>
<script  type="text/javascript" src="js/jquery-ui-1.10.2.custom.js"></script >
 <!--script of the plugin-->
    <script src="jquery.mCustomScrollbar.concat.min.js"></script>
<script>
(function($){
    $(window).load( function(){

        $('#tablebody').mCustomScrollbar({               
            scrollButtons:(enable:true),
            autoHideScrollbar:true

        });

    });
)}(jquery);
</script>
</head>
<body>
<div id="tablebody"> <!--css{overflow:auto}-->
   <table id="inv_data">
        <tbody id="data_content"></tbody> <!--appending <tr>-->
   </table>
</div>
</body>
</html>
Matías Cánepa
  • 5,770
  • 4
  • 57
  • 97

0 Answers0