I m 试图通过植被要求(植被要求、带有3个不同孩子的3个半个圆点的回归超文本数据)获得特定微粒的超文本。
我的守则如下:
$.get("ajax/learn-more.html", function(data){
var $response = $(data);
alert($response.find( #main-images )); // <= prints [Object object]
alert("Data Loaded: " + data); // <= displaysthe whole html of learn-more.html
// how can I get the html of a div in learn-more.html with id="main-images" ???
});
EDIT:
The content of learn-more.html:
<div id="something" class="hero-unit span-one-third" style="position: relative;">
Foo Bar
</div>
<div id="main-images" class="hero-unit span-one-third" style="position: relative;">
<div id="learn-more-photo" class="span-one-third">
<img class="thumbnail" src="http://placehold.it/300x180" alt="">
</div>
</div>
<div id="learn-more">
:D
</div>