/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var counter; $("#ukn-clusters ul.ukn-component-main li ul").each(function() { counter = 1; $(this).children("li").each(function() { if (counter > 3) $(this).addClass('ukn-cluster-hidden').hide() counter++; }); });