bmckenzie schrieb:
> I'm new to jquery -- quite impressed.
>
> I'm trying to convert a page (built with prototype and scriptaculous) where
> clicking on a link adds a navigation tab with content fetched via Ajax.
>
> I can add a tab ok with (using dom creator plugin) . But the tabs plugin (by
> Klaus Hartl) seems to be set up to add behaviors to an existing set of list
> items. How would I go about extending/binding? the plugin's behavior(s) to a
> new member in the set?
>
> Thanks,
>
> Bruce
The easiest way that came to my mind for now, without the need for
changing the plugin, would be this:
After the new tab has been added do this (where #container is the div
holding the tabs html):
$('#container').find('>ul>li>a').unclick().end().tabs();
Does that work?
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/