I'm using the jQuery cycle plugin and want the next and previous nav buttons to hide themselves if there is only one slide available in the slide deck. Below is my current code, it will hide one of them if you reach the end of the slide show, but if there is only one slide they will both remain visable. I'm assuming you just read the index of the slide and display : none based off of that but want to make sure I'm doing it the most efficient way possible.
I'm using the jQuery cycle plugin and want the next and previous nav buttons to hide themselves if there is only one slide. Below is my current code, which will hide one of them if you reach the end of the slide show. I'm assuming you just read the index of the slide and display : none based off of that but want to make sure I'm doing it the most efficient way possible.
So I'm using the Cycle plugin to cycle through some divs. These divs have quite a bit of content in them that is variable and I'm running into an issue where the content that is being cycled is getting hidden in its containing div. This div is the one that feed to the function to be cycled. When I try to toy around in dev tools and set the height of the container to auto the entire container shrinks to a height of 0 or 2px. I can't seem to figure out why this would be occurring. Any help would be greatly appreciated!