0
所以这里是我的代码。来自jQuery的jQuery儿童选择对象?
var template = $("#instance > .template");
$("#instance-" + country + " > .content > .stats > .map > .template").before(function() {
var temp = template.clone();
//how to select descendant?
temp.children(".amount-all").html(json.services[service].total);
return temp;
});
我需要做的是这样的:
temp.children(".amount-all").children("blala").children("blalalala").html("blala");
或者是有其他的,更简单的方法?
谢谢你 - 这个工作! :) – Rihards 2010-11-04 18:22:25