In this chapter, we have solved a common problem--sorting a data table--in three different ways, comparing the benefits of each approach. In doing so, we practiced the DOM modification techniques that we have learned earlier and explored the .data() method for getting and setting data associated with any DOM element or attached using HTML5 data attributes. We also pulled back the curtain on several DOM modification routines, learning how to extend them for our own purposes.
Summary
Further reading
A complete list of DOM manipulation methods is available in Appendix C of this book, or in the official jQuery documentation at http://api.jquery.com/.