Can't get Tabs to work
Can't get Tabs to work
I just began playing around with jQuery tabs today, and I've had no
success. My code so far is pretty simple:
<body>
<div id="header">
<ul>
<li><a href="#blog">Blog</a></li>
<li><a href="static/resume">Resume</a></li>
<li><a href="static/code">Code</a></li>
<li><a href="static/projects">Projects</a></li>
</ul>
</div>
<div id="blog"></div>
</body>
var list = $('#header > ul').tabs();
list
.bind('tabsshow', function(e,ui){
alert(ui.panel) // undefined
alert(ui.tab) // undefined
alert(ui.index) // undefined
})
No matter what I call, the ui.foo pieces are always just undefined. I
tried to read the docs.jquery documentation for tabs, but the tabs
piece is throwing errors, so I'm kinda stuck.
Also, I'm not sure if it's a problem with the new stuff, but I *just*
this morning (like 30 minutes ago) downloaded the new jQuery 1.3 and
whatever the default version of jQuery UI and Tabs is. Not sure if
that could be doing it?