Use name instead of class and serialize the form
Cycle backwards or forward depending on event.shiftKey