0
Need help, select all <a> links which are inside paragraph tags?
10 Respostas
+ 4
easy like this:
$('p a')
+ 1
$("p a")
+ 1
$("p a")
+ 1
$("p a") is select all <a> links which are inside paragraph.
0
$("p a")
0
$("div.menu") // all <div> elements with class="menu"
$("p:first") // the first <p> element
$("h1, p") // all <h1> and all <p> elements
$("div p") // all <p> elements that are descendants of a <div> element
$("*") // all elements of the DOM
These commands can be used to do the same.
0
$
0
$ ("p a")
0
Select all <a> links which are inside paragraph
_("__")
0
$("p a")