【发布时间】:2013-08-15 10:28:24
【问题描述】:
谁能帮我编辑这个jQuery,而不是从页面上的任何地方提取#product_name_source,而是从#Altitude div 中获取它。正如你所看到的,我在那里尝试了一些东西,但似乎你不能在 URL http://google.com #parent #child 中有多个 div。有谁能帮忙吗?
$('body').ready(function(){
var product_name = 'Altitude';
$('#product_name').load('http://cdn.jeremyblaze.com/theme_info.html #' + product_name + '#product_name_source');
});
【问题讨论】: