जोड़ें: jQuery का nth-of-type - सीएसएस-ट्रिक्स

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; );

अन्य प्रकार के चयनकर्ताओं को जोड़ने के बारे में अधिक जानकारी के लिए मूल लेख देखें।