I am using BxSlider for creating a carousel and I have the slider working but i wanted to add a functionality where I need to change the value of an object to false
$(document).ready(function () {
var slider = $('.bxslider').bxSlider({
speed: 10000,
slideWidth: 170,
slideMargin: 5,
minSlides: 4,
maxSlides: 10,
ticker: true,
nextSelector: '#slider-next',
prevSelector: '#slider-prev',
nextText: '<img src="images/next.png">',
prevText: '<img src="images/prev.png">'
});
i want to change the value of ticker to false on hover. I am not sure how to
$('.className').hover(function () { ///How should I change the value here });
I have looked at attr() in jQuery but it didn't work
$('.className').hover(function () {
slider.attr('ticker', false);
});
but i guess it just targets what is outside the BxSlider();