Dig deeper into jQuery with "jQuery Succinctly"
Blog :Tech Tips, Tricks & Trivia
Date: 6/10/2012 4:59:00 PM
jQuery Succinctly by Cody Lindley is an ebook that Syncfusion is offering as a free download (requires registration).
It meets all the expectations I have of a good technical book - author is an expert on the topic, it's written in plain-English with no fluff and it provides a number of take-aways that you can apply at work. I had several 'aha' moments while reading through the facts like these -
The nth-child() filter doesn't have a zero index
The default context used by the jQuery function when selecting DOM elements is the document element (e.g. $('a', document)). This means that if you do not provide the jQuery function (e.g. jQuery()) with a second parameter to be used as the context for the DOM query, the default context used is the document element, more commonly known as <body>.
One might incorrectly assume that the text() method only returns the text node of the first element in a wrapper set. However, it will actually join the text nodes of all elements contained in a wrapper set and then return the concatenated value as a single string.
Many of the samples are well-commented & display DOM manipulation wizardry. I'm sure I'll run into ocassions where I can put the tricks mentioned in this book to good use.
It would be nitpicking to say there are a few typos here & there. This book is a great resource for intermediate & advanced jQuery developers.