jQuery: Dom Traversal (find parent and child nodes) - Beau teaches JavaScript

  Рет қаралды 23,339

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

jQuery makes it easy to find specific elements based on their relation to other elements. Many methods allow you to find parent and child elements.
The following methods are discussed in this video: parent, parents, parentUntil, children, find, siblings, next, nextAll, nextUntil, prev, prevAll, prevUntil.
💻 Code: codepen.io/bea...
🐦 Beau Carnes on Twitter: / carnesbeau
-
Learn to code for free and get a developer job: www.freecodeca...
Read hundreds of articles on technology: medium.freecod...
And subscribe for new programming videos every day: kzbin.info...

Пікірлер: 18
@mkmohsinali
@mkmohsinali 6 жыл бұрын
Great explanation. Visual representation really helped.
@roblane66
@roblane66 5 жыл бұрын
Great video. Just what I needed. Thanks
@mahydulislam
@mahydulislam 2 жыл бұрын
thankyou for your details description
@epicornstudio4657
@epicornstudio4657 4 жыл бұрын
Wow this video is soo helpful
@davidacosta6383
@davidacosta6383 5 жыл бұрын
Brilliant!!
@gouthamchandranakka1553
@gouthamchandranakka1553 3 жыл бұрын
awesome thumbnail
@kalimahamad4534
@kalimahamad4534 Жыл бұрын
I have div which have two tables in that table have a column total and i want to add all total and show grand total how to run the loop. showing snapshot VOUCHER CODE PENDING VOUCHER BALANCE QTY FACE VALUE DISCOUNT(%) QUANTITY TOTAL AHimanshu INR 100 VAH100 0 447 100 -40230 DAYS TOTAL MAX AVERAGE TAT-(DAYS) QUANTITY 30 0 0 0 0.00 0 60 0 0 0 0.00 0 90 0 0 0 0.00 0 1 0 0 0 0.00 0 Tell me how to loop this child element contained inside div
@lolasdasad
@lolasdasad 4 жыл бұрын
Thx man
@ore_bear8045
@ore_bear8045 2 жыл бұрын
perfekt thank you
@ashnashilmy1323
@ashnashilmy1323 5 жыл бұрын
Awesome..
@christopherhoup3531
@christopherhoup3531 Жыл бұрын
Can I access a .prev() containing a class or id? If so can you provide an example?
@sufiyanfaisal5593
@sufiyanfaisal5593 Жыл бұрын
.prev() just selects the previous one irrespective of it's id. I think what you really wanna do is .prevAll(".someClass").
@ADITYA_CSE
@ADITYA_CSE 7 жыл бұрын
when we use console.log () in javascript
@AndrewRMillar
@AndrewRMillar 7 жыл бұрын
You do realize that you are not allowed to place block level elements inside inline elements, right? I realize that that is not important for the subject of this tut/showcase, or however you want to call this. But if coders, inexperienced with html, are using this as a reference, getting things like that right is important. Don't mean to bash your vids, they are very informative for people beginning with jQuery!
@benmjt
@benmjt 7 жыл бұрын
That's no longer as strict in HTML5
@AndrewRMillar
@AndrewRMillar 7 жыл бұрын
I haven't read the html 5 working draft (www.w3.org/TR/2015/WD-html51-20151008/), but when I was learning html, way back when, putting a block level element inside of an inline element was a big no no. It just looks like how a rock in my shoo feels. To my eyes it's a sign that the person writing the markup is a novice.
@agentstona
@agentstona 4 жыл бұрын
@@AndrewRMillar i believe you have never used react js or vue js that is the case all the time ... chill out dude ITS NO LONGER STRICT and doesnt matter , virtually we can inline and merge elements any way we like it s 2020 . get out of 1995 bruh
@saswatdai821
@saswatdai821 7 жыл бұрын
please verify your freecodecam email..the site has gone down :(
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,8 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36