$('.tab').click(function() {
$(this).unbind("click");
var classy = $(this).attr("class").split(" ").splice(-1);
var ihtml = $('.content.'+classy).html();
$('#holder').html(ihtml);
$('.tab').removeClass('highlight');
$(this).addClass('highlight');
$(this).unbind("click");
});
其綁定因此,在這個代碼,我已經基本上,一個標籤式界面。當我再次單擊選項卡時,#holder中的信息消失。所以我想要做的是在用戶點擊標籤時解除綁定,然後在切換標籤時將其綁定。我怎樣才能將其整合到我的代碼中?取消綁定一個div再後來
謝謝。
你可以使用代碼按鈕來編碼你的文本嗎?使它更好閱讀:-) – 2009-08-23 15:41:07
嘿,對不起,我以爲我有。 現在所有代碼都已裝箱! :D – Johnny 2009-08-23 15:42:23