Subscribe to this list via RSS Blog posts tagged in jQuery index

Posted by on in Blogs
jQuery Index Inconsistency 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....
  • Page :
  • 1

Check out more tips and tricks in this development video: