Ajouter: nième de type à jQuery - Astuces CSS

Anonim
$.expr(':')('nth-of-type') = function(elem, i, match) ( var parts = match(3).split("+"); return (i + 1 - (parts(1) || 0)) % parseInt(parts(0), 10) === 0; );

Voir l'article original pour plus d'informations sur l'ajout des autres sélecteurs «de type».