Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  8] [ 3]  / answers: 1 / hits: 18275  / 13 Years ago, thu, september 1, 2011, 12:00:00

I guess this will be voted down, as it doesn't contain enough jQuery, but here it goes :)



What is the most effective way to get the element(s) returned by the jQuery selector below using plain old javascript?



$('a[title=some title text here]', top.document)

More From » jquery

 Answers
134

If you're using a modern browser, you could use this:



window.top.document.querySelectorAll('a[title=some title text here]')

[#90317] Tuesday, August 30, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devonw

Total Points: 311
Total Questions: 116
Total Answers: 111

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;