0
我已經實現了點擊一個鏈接,它動態添加一個標籤,但導致整個頁面重新加載。有沒有人知道是什麼原因?JQuery標籤:動態添加選項卡導致頁面重新加載
$(document).ready(function() {
var tabObj = $("#tabs").tabs({
add: function(event, ui) {
//select newely opened tab
tabObj.tabs('select',ui.index);
}, collapsible: true, cache: true});
// , fx: {opacity: "toggle", duration: "normal"}
//Dynamic add tab
$("#assignee").click(function(){
//alert("FFFFFFFF");
tabObj.tabs("add", "#noc","NOC");
//tabObj.tabs("select", "#noc");
});
});
請幫忙。謝謝。