Change to expandedTabs.children('div').size().