可能重复:
Why does jQuery or a DOM method such as `getElementByID` not find the element?如何加载使用脚本.load()
我加载文件使用jquery.load()。在我的load_to.html中,我将目标设为ID为
$('#users').change(function() {
alert('hello');
});
此元素存在于load_from.html中。我无法瞄准这一点。但是当我检查页面时,我可以看到这个元素。
我加载页面这样
$('#mydiv').load('/user/1/edit form');
如何定位的元素?
@roXon你这是什么意思呢? –