Hi,

Is there a special syntax for using a variable in tabTemplate?

I tried

                        load: function(event, ui) {
                        var selected = $tabs.tabs('option', 'selected') + 1;
                        $('#selectedtab').get(0).value = selected;
                        $('a', ui.panel).click(function() {
                        $(ui.panel).load(this.href);
                        return false;
                        }); 
                        },

                        tabTemplate: '<li>img class="absmiddle"
style="margin-left:2px;margin-top:6px;margin-right:0px;float:left" alt=""
src="clear.gif" id="imgsrc_"+selected+" />a
href="ajax.php?tabid="+selected+">#{label}  Remove Tab</li>',

That will not work.

Thanks

(I removed the opening tag for image and link so it could display here)
-- 
View this message in context: 
http://www.nabble.com/Variable-in-tabTemplate-tp24990923s27240p24990923.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to