February 2014
Intermediate to advanced
410 pages
8h 15m
English
When using jQuery to dynamically create elements such as list items, divisions, and input, it can be useful to be able to re-use these elements without having to rewrite them within JavaScript. Instead, it may be beneficial to copy the elements and just modify the sections you wish to change.
Using the text editor of your choice, create a blank HTML document named recipe-12.html, which is within a location that has easy access to the latest version of jQuery.
Learn how to re-use DOM elements by performing each of the following recipe steps:
recipe-12.html page you have just created, add the following HTML, CSS, and JavaScript code:<!DOCTYPE html> <html> <head> <title>Reusing DOM elements</title> ...
Read now
Unlock full access