-1
I am using bxslider and rodo perfectly the following code:
<script>
$(document).ready(function(){
$('.slider').bxSlider({
auto: true
});
});
</script>
Which results in card drive..
I have this div that inside it contains an image. the insertion of the image is dynamic according to a foreach...
<div class="slider">
<img id="ImgBanner" src="...">
</div>
I need that when you only have one image, it does not allow dragging and becomes "static" and when there is more than one image, normally work the drag option.
I tried using the following code and resulted in nothing:
$(document).ready(function(){
$('.slider').bxSlider({
auto: ($("#ImgBanner").length > 1) ? true: false,
pager: ($("#ImgBanner").length > 1) ? true: false,
controls: false
});
});
the stretch
$("#ImgBanner").length
returns the quantity of the correct form?– flourigh
Missing the div that encompassed, thank you for your reply.
– Thalles Rangel