So I have this bit of code and I tried putting it in .load
and .ready
functions but it just doesn't work because the carousel isn't fully loaded yet.
var num_rec = "${recProducts.size()}";
if(num_rec < 5){
jQuery(".jcarousel-prev").attr("disabled", true);
jQuery(".jcarousel-next").attr("disabled", true);
jQuery(".jcarousel-clip").attr("style", 'postion:relative; width:312px;');
}
Now this code runs, but is overridden by the carousel options. Is there an option for the carousel I can use that will run a function to run this code?
If I have only four things in my carousel then there is no need to show any paging because all four things will be displayed so I want to remove paging altogether and make the container a bit larger so that the picture doesn't cut off. If there are more than 4 though I need the paging.