yup figured it out, thanks guys
finally i don't change the template... i do something like this.
// add a tab with the the nick specified
$("#tabs").tabs('add' , '#' + tag, '' + nick + '');
// correct the holding div
$("#" + tag).attr("style", "width: 95%; height: 80%;");
// add the content
$("
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
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 wrote:
> Why don
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 wrote:
> Why don
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 wrote:
> Why don
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
6 matches
Mail list logo