children - Use jQuery to find out how many list items are in an unordered list -
I am creating a tabbed content interface. I want to add a tab via jQuery to control the panel. The only need for the jQuery plugin to work is that the same amount of panels on the tab has the same amount (the number of panels is not always consistent) I need to ask how many list items are in my UL panels and in a variable Is stored, so I can create a loop with the variable that does it to add to my list items in ul.tabs.
Access to server-side scripts, so there is no possibility to modify PHP.
var calculation = $ ("ul.panels li"). Shape ();
Comments
Post a Comment