jQuery vs. Vanilla JS

1
2
// Add Class
$('.element').addClass('this-is-a-new-class'); // jQuery
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Odds are you don't really need jQuery, it adds un-needed bloat to your site.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.