我在具有以下属性的页面上有多个具有不同 id 的 div 标签:
<div class="alert alert-info" id="1">
<p><b><span class="adName">Name</span></b><br>
<span class="ad1">address1</span><br>
<span class="ad2">address2</span><br>
<span class="ad3">address3</span><br>
<span class="adCity">city</span><br>
<span class="adState">state</span><br>
<span class="adPin">pincode</span><br>
Ph no :<span class="adPhone">phone</span><br>
</p>
</div
单击特定 div 时,我想获取跨度标签内的值。如何识别被点击的 div 然后获取其内容?