I don't think that's what you really want to do. But, if it is, the correct syntax is:
Code:
setInterval(function(){countries.expandit(1);}, 3000)
The reason I don't think you want this is that what it does is every 3 seconds it selects the 2nd tab.
Notes: The name of the public function is expandit, not expandtab (that one's internal) and the syntax requires it to be a property of the instance - in this case of countries. The tab indexes are numbered form 0, so 1 is the second tab. Using 2 as you had - if it had worked, wouldn't because there are only two tabs, and 2 would be the third tab. There is no third tab.
Bookmarks