Elements with the same classname

Elements with the same classname

If I only want to modify a particular element with the same classname as a group of elements, how would I go about doing that?

I know JavaScript has a way, as shown below, but what is the jQuery equivalent? Thanks!

  1. document.getElementsByClassName('foo').item(1);