我已經將div的html內容複製到了javascript中的變量中。現在我想把title屬性的值放到TD標籤的內容中,無論哪個類都是彈出的。所以我創建了下面的代碼。但它並沒有幫助..在jquery中查找帶有特定條件的對象變量的標籤
var tmpDiv = document.createElement("div");
tmpDiv.setAttribute("style","display:none");
$(tmpDiv).html($('#'+divid+" .scrollTableContainer").html());
$(tmpDiv+ 'td .popup').each(function(index,value) {
$(this).html($(this).attr('title'));
});
嗨,夥計那裏是'VAR divid' –