Am I the only one that can never remember whether I want to use .before()/.after() or .insertBefore()/.insertAfter() in
almost 2 years ago
Copy URL to clipboard
i before e except after c.
Thirty days hath September, April, June, and November.
Two wrongs don't make a right but three lefts do.
Hey, it's CAJ!
Please Excuse My Dear Aunt Sally.
LB: three assignments to go!
My mother told me to pick the very best one, and you are not it.
Same with append vs appendTo. My brain doesn't like to think in the direction of the later. $('<cup class="tea earlgrey hot">').appendTo('
') returns you the cup of tea you just replicated. $('#Picard').append('<cup class="tea earlgrey hot">') returns a badass captain who's now in repose sipping his tea.
Yeah, I struggle with the prepend()/append() vs. prependTo()/appendTo(), as well. I thought Picard always drank International Coffees rather than tea, though.
1 2 3 4 5 6 7 8 9 10
Best of Mokum
Share on Mokum: bookmarklet