I'm trying to implement jquery serialScroll on one of my carousels with prev/ next buttons however i'm only able to get it to work when I pass in unique id's for prev and next. what I would like to do is pass in a selector.
So with markup like this:
<div id="screen">
..
<img class="prev" ..>
..
<img class="next" ..>
..
</div>
This seems to work:
$(#screen).serialScroll({
//..
prev: 'img.prev',
next: 'img.next'
});
But this does not:
$(#screen).serialScroll({
//..
prev: '#screen .prev',
next: '#screen .next'
});