我有负载( 'file.html #target .subTarget')不工作
我试图
$(destino).load('all.html #reservas_1',function(){
console.log('cargado!');
alert($(destino).html()); //the alerts shows HTML
}).show();
,它工作正常,
但进入的HTML代码包由至极有一个显示器没有,所以我想要
$(destino).load('all.html #reservas_1 .content',function(){
console.log('cargado!');
alert($(destino).html()); //the alert shows black string
}).show();
任何想法为什么?是因为我使用一个类作为选择器或者是我无法加载一个子目标?
你能显示来自all.html的内容吗? – Thys
您的第一段代码是否提醒具有“.content”类的元素? –
@AbdullahBattal是的它确实 –