0

How do I use jquery to select links in a paragraph

I'm trying to use jquery to select all links in a parapgraph. I am trying to do it like this: $("p:a")

17th Feb 2017, 1:19 AM
Clemence Chinyani
Clemence Chinyani - avatar
2 Answers
0
$("p a") <-- This should get all anchor tags within a paragraph tag.
17th Feb 2017, 1:55 AM
ChaoticDawg
ChaoticDawg - avatar
0
thanks dawg
17th Feb 2017, 1:57 AM
Clemence Chinyani
Clemence Chinyani - avatar