这是我的代码:
<div class="accordion-heading" onclick="$(this).parent().find("#badge_request_content").focus();">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
<h4>
<span class="ex-num complete-num wait_on_type">
<i class="icon-ok"></i>
</span>
<i class="icon-pencil"></i>
Write a quick summary
</h4>
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
实际上我想找到上一个 div 的标记类名称,如上所示。喜欢<seconddiv id>.find(previous div span class name)
有人帮忙吗?我想用 jquery 来做这个?