/ Published in: JavaScript
![](/img/icon_sav.png?v3)
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++; }); });
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)