什么是jQuery选择器,用于选择特定div中具有特定类的锚元素 [英] What is the jQuery selector for selecting anchor elements with a particular class in a particular div
本文介绍了什么是jQuery选择器,用于选择特定div中具有特定类的锚元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这样的代码,我想在div foo
I have some code like this and I want to select every <a>
tag with the class status
in the div foo
<div id="foo">
...
<a class = "status"> ... </a>
...
</div>
推荐答案
您可以执行$('#foo').find('.status')
这篇关于什么是jQuery选择器,用于选择特定div中具有特定类的锚元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文