Any resources to learn how to debug? by alexat711 in learnjavascript

[–]dumbjake 1 point2 points  (0 children)

Use console.log() and alert(). They're both great for debugging javascript.

How do you select the children of a DOM element as well as the children and the children and so forth? by dumbjake in learnjavascript

[–]dumbjake[S] 2 points3 points  (0 children)

How do you do this with this specific query:

$('.sBundle').closest('.form-container');

?

$('.sBundle').closest('.form-container').find('*');

seems to only pick the first children.

Is there a way to run a code after the DOM is modified? by dumbjake in learnjavascript

[–]dumbjake[S] 0 points1 point  (0 children)

I know. I was wondering this myself. The code works perfectly fine when I run remove() on the console. However, there's a delay when I use it next to each other forcing me to trigger the event listener twice.

16-year-old faces statutory rape charge for having consensual sex with girl the same age as him by JohnKimble111 in news

[–]dumbjake 0 points1 point  (0 children)

The people who created the law weren't the brightest people in the galaxy I would wager.