previousIndex() returns index of previous element. if there is no previous element then -1 is returned.
Previous Question Next Question
Your comments will be displayed only after manual approval.