You could add that to the template. Or use the add callback to
populate the tab:

$('#whatever').tabs({
    add: function(event, ui) {
        $(ui.panel).html( ... )
            .find('input'); // do something with these inputs
    }
});

It seems you have to use the add callback anyway to get to these
inputs. If you use the template you only wouldn't need the html()
call.

--Klaus


On 23 Feb., 02:29, Paul Georges <sinst...@gmail.com> wrote:
> awesome, thanks. can't believe i missed that one.
>
> and as for the content of the tab? if i wanted a tab to always have
> two textboxes, should i modify the template? and then who would i
> access these two input boxes dynamically?
>
> thanks heaps
>
> paul
>
> On Feb 21, 12:41 am, Klaus Hartl <klaus.ha...@googlemail.com> wrote:
>
> > Why don't you put the desired label in the first place?
>
> > $('#tabs').tabs('add', '#new', 'Label');
>
> > Other than that you could utilize the add callback:
>
> > $('#tabs').tabs({
> >     add: function(event, ui) {
> >         // add additional html to the tab
> >         $('span', ui.tab).html(...);
> >     }
>
> > });
>
> > Or you can change the tabTemplate option and add that html there...
>
> > --Klaus
>
> > On 20 Feb., 06:01, Paul Georges <sinst...@gmail.com> wrote:
>
> > > hey guys and gals,
>
> > >http://docs.jquery.com/UI/Tabs
>
> > > followed the above docs but couldn't quite add tabs correctly yet. i
> > > can add a tab, yes, but then i can't change it's label or innerHTML.
> > > how can i do this?
>
> > > cheers!
>
> > > Paul!
>
>

Reply via email to