是否可以这样做?
<div id="search">
<div id="elem"></div>
</div>
<div id="search2">
<div id="elem"></div>
</div>
------这是我正在尝试做的例子--------
$('#search').ready(function(){//i want to declare parent elem
$('#elem').html('some');//make all actions what inside that parent elem
});
$('#search2').ready(function(){//i want to declare parent elem2
$('#elem').html('some2');//make all actions what inside that parent elem
});
//or is it possible only like that:
$('#search #elem').html('some');
$('#search2 #elem').html('some2');