选择所有的链接 [英] Selecting all the links
本文介绍了选择所有的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
How would you select all the links inside a certain div, using jquery?
你有没有注意到你也可以这样做?这会更安全一些,我会说...
Have you noticed how you could this too? It's a bit safer I would say...
$('#content a[href]')
一个简单的锚你不想选择..
In case you had a simple anchor you wouldn't want selected..
这篇关于选择所有的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文