want to change the width of class owl-item in jquery. How to do that. Kindly help.
Please see the link
I need to reduce the width of the box. Please suggest
I am adding the the javascript for your reference:-
Please see the JS code so we can get an idea:-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="js/owl.carousel.js"></script> <script type="text/javascript"> $(document).ready(function () { var owl = $("#owl-demo"), status = $("#owlStatus"); owl.owlCarousel({ navigation: true, afterAction: afterAction }); function updateResult(pos, value) { status.find(pos).find(".result").text(value); } function afterAction() { updateResult(".owlItems", this.owl.owlItems.length); updateResult(".currentItem", this.owl.currentItem); updateResult(".prevItem", this.prevItem); updateResult(".visibleItems", this.owl.visibleItems); updateResult(".dragDirection", this.owl.dragDirection); } }); $(document).ready(function () { var owl = $("#owl-demo1"), status = $("#owlStatus1"); owl.owlCarousel({ navigation: true, afterAction: afterAction }); function updateResult(pos, value) { status.find(pos).find(".result").text(value); } function afterAction() { updateResult(".owlItems", this.owl.owlItems.length); updateResult(".currentItem", this.owl.currentItem); updateResult(".prevItem", this.prevItem); updateResult(".visibleItems", this.owl.visibleItems); updateResult(".dragDirection", this.owl.dragDirection); } }); </script>
$('.owl-item').width(250); // or whatever