It was illuminating to see how much I take jQuery for granted. For example, I wanted to add a button to the page. jQuery makes this very easy:
Without jQuery, however, you have to be a little more verbose:
I wanted to add a wrapper element to my group of
This is a breeze with jQuery:
I looked at jQuery’s source code after I finished the exercise
to see how
$.wrapAll was implemented,
and unsurprisingly their implementation is very elegant.
I think the average web developer can learn a lot from reading the
for an excellent introduction, check out this screencast
by Paul Irish.
This proved to be a fun and educational task, and it renewed my appreciation for jQuery’s simplicity and effectiveness. If you want to better understand the gifts jQuery gives you, I strongly recommend you try a little project without it.