May 2017
Intermediate to advanced
448 pages
10h 10m
English
The traversal method combinations that we have just explored illustrate jQuery's chaining capability. With jQuery, it is possible to select multiple sets of elements and do multiple things with them, all within a single line of code. This chaining not only helps keep jQuery code concise, but it can also improve a script's performance when the alternative is to respecify a selector.
It is also possible to break a single line of code into multiple lines for greater readability, as we've been doing throughout this chapter so far. ...
Read now
Unlock full access