jscroll
jscroll copied to clipboard
PHP & MySQLi - can't get it work
I think my code is right but i can't get it work don't know why. Here's d code.
<script src="js/jquery.jscroll.js"></script>
<script src="js/jquery.jscroll.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$('.jscroll').jscroll({
autoTrigger: true
});
});
</script>
<div clsss='jscroll'>
<div class='col-md-12 col-xs-12' style='padding:3px;'>
<p class='z-depth-1'>
<a href='product_details.php?product_details=$row[ID]/$row[item_name]'>
<img src='$row[url1]' style='height:auto; width:100%;' draggable='false' />
</a>
</p>
<p class='price' style='color:grey;' align='center'>$row[item_price] BHD</p>
</div>
</div>
@androidworldbh - You are including the jScroll source twice. You should only have one file, either jquery.jscroll.js or jquery.jscroll.min.js, but not both. jquery.jscroll.min.js is just the minified version of the code.
I've removed .min. version , unfortunately same thing - not working
I can't really deduce what the problem is from the information given. Do you have an example page to view?
not sure if typo here, but your jscroll class has typo: clsss='jscroll' class='jscroll'