Summary

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 we 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.

Further reading

A complete list of DOM manipulation methods is available in Appendix C, Quick reference, of this book, or in the official jQuery documentation at http://api.jquery.com/.

Get Learning jQuery - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.