0

select all elements that are direct children of div element

select all elements that are direct children of div element

23rd Aug 2017, 3:10 PM
Ogundaisi Joseph Opeyemi
Ogundaisi Joseph Opeyemi - avatar
6 Respostas
+ 1
OK thank you
24th Aug 2017, 12:58 AM
Ogundaisi Joseph Opeyemi
Ogundaisi Joseph Opeyemi - avatar
0
the answer is $ and 0
21st Oct 2022, 7:00 PM
mahla faridani
- 1
$("div>*")
5th Nov 2017, 8:19 AM
Nagarjun Gowda M R
- 1
All element is a trick. So * answer is right.
23rd Jul 2018, 3:09 PM
Raja Thamizharasan
Raja Thamizharasan - avatar
- 1
$("div>*")
17th Aug 2019, 11:03 AM
Sandesh Vhotkar
- 2
use the jquery method called children() $("div").children() Here is the documentation: https://www.w3schools.com/jquery/traversing_children.asp and a code sample https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_traversing_children
23rd Aug 2017, 6:03 PM
Patricio Salazar
Patricio Salazar - avatar