performanceuser
performanceuser

Reputation: 2893

how to disable next button when it is the last image in colorbox

I want to be able to disable(not clickable) "Next" button when it is showing the last image in colorbox so that it won't go back to the first image.

Same thing for "Previous" button.

Is there a way to do that?

Upvotes: 0

Views: 637

Answers (1)

Fresheyeball
Fresheyeball

Reputation: 30015

In your colorbox settings set loop to false

http://www.jacklmoore.com/colorbox check the loop feature on this page.

Upvotes: 2

Related Questions