0
的所有文字,如果我有以下获得来自特定元素(一个或多个)
var url = this.data;
$.get(url, {}, function(data){
alert(data);
});
我能够成功地遍历并提醒如下:
<a href="javascript:void(0)" id="arboretum-smith" class="bullet" rel="251-195"> </a>
<div class="popup" id="arboretum-smith-box">
<h3>Title 1</h3>
<div class="popupcontent">
<p>Description text to go here.</p>
</div>
<a class="close" href="javascript:void(0)">Close</a>
</div>
<a href="javascript:void(0)" id="old-well" class="bullet" rel="251-245"> </a>
<div class="popup" id="old-well-box">
<h3>Title 2</h3>
<div class="popupcontent">
<p>Description text to go here.</p>
</div>
<a class="close" href="javascript:void(0)">Close</a>
</div>
<a href="javascript:void(0)" id="bell-tower" class="bullet" rel="100-100"> </a>
<div class="popup" id="bell-tower-box">
<h3>Title 3</h3>
<div class="popupcontent">
<p>Description text to go here.</p>
</div>
<a class="close" href="javascript:void(0)">Close</a>
</div>
但是我想做的事得到<h3></h3>'s
之间的文字。标题1,标题2等什么是最好的方式去做这件事?