Tricks: Get index of current slide as integer

Sometimes you need to know, which slide is active. You can get the index* with the following code snippet:

$('#slider').find('li.rhino-active').index();

* Please note, that the counting starts with 0.

Get as jQuery object

If you want to get the current slide directly as an object, just call this code snippet:

$('#slider').find('li.rhino-active');