Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
63
rated 0 times [  66] [ 3]  / answers: 1 / hits: 16560  / 6 Years ago, fri, february 23, 2018, 12:00:00

I'm trying to select the strong a tags that's inside the .info class



$(.info).each(function(i, item){
console.log($(this).children(strong a).text())
});


it's selecting the info class correctly, just not the strong a



enter


More From » jquery

 Answers
83

You should be able to do



$(.info).each(function(i, item){
console.log($(strong a, item).text())
});

[#55081] Monday, February 19, 2018, 6 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
everett

Total Points: 317
Total Questions: 112
Total Answers: 109

Location: Philippines
Member since Sat, Jul 11, 2020
4 Years ago
;