i'm using simplemodal library to show a collection of items, each of which is some html content... however, all of these are of the same structure and are related, so i'm trying to find a way to implement back/next links to save users an extra click (to close the current, then open next, and wait for the animations to happen for half a second) to view the next in the series and to give an easy way to go through all the items (kinda like lightbox allows you to easily go though all the images in a set; thats essentially the behavior i'm looking for)
first i tried opening a modal from within a modal, but that doesnt work. next i'm trying to close the modal from within the modal AND then programmatically open the next one (assuming that its somewhat trivial to 'know' which one needs to be opened for any given link) so say i have 5 items, and i've opened the 2nd, it should have a previous link to go to the 1st and a next link to go to the 3rd... but how can i make these links actually function? is this something that can be achieved with some tricky coding or does the actual plugin/ framework need changes to enable it to 'see' sets of items like lightbox? any ideas are appreciated! :)