February 2014
Intermediate to advanced
410 pages
8h 15m
English
Pagination is the act of collating large amounts of data and presenting it to the user in small, easy-to-read sections or pages.
With a combination of jQuery, JavaScript functions, and event handlers, we are able to easily collate and present data to the user in pages.
To create a paginated set of data, we first need some data to paginate and then a location to place the paginated data. Use the following code to create an HTML page:
<!DOCTYPE html> <html> <head> <title>Chapter 1 :: DOM Manipulation</title> <script src="jquery.min.js"></script> <script> var animals = [ { id: 1, name: 'Dog', type: 'Mammal' }, { id: 2, name: 'Cat', type: 'Mammal' }, { id: 3, name: 'Goat', type: 'Mammal' }, { id: 4, name: 'Lizard', ...Read now
Unlock full access