+ 1

Select all <a> links which are inside paragraph tags.

Hello, I am new to learning jQuery, please help me with this question.how am I supposed to select all <a> elements inside paragraph tags? Thank you

30th Jan 2018, 2:56 PM
khalid
khalid - avatar
3 Answers
+ 2
$ ("p a")
24th Mar 2018, 9:31 AM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
+ 1
Use $("p > a")
30th Jan 2018, 3:18 PM
John Wells
John Wells - avatar
0
No
21st Feb 2019, 1:38 PM
Sreenath