The jQuery :nth-child selector has an "index" argument which is 1-based. But the jQuery "index" method, which is arguably the converse of the selector, returns a 0-based result. This is very easy to work around once you're aware of it, but it's surprising in a library which is, generally, designed both well and consistently....