February 2014
Intermediate to advanced
410 pages
8h 15m
English
To create rich and interactive user interfaces, we need to be able to dynamically add DOM elements to a web page. Elements may need to be added to a web page based on user interaction or another event such as page load.
For this recipe, you are going to need another blank HTML file. Create a new HTML file named recipe-3.html within the same directory as the one used for the previous recipe's files.
Learn how to create DOM elements with jQuery by performing the following steps:
recipe-3.html file in order to create a basic HTML page with an unordered list and include the jQuery library:<!DOCTYPE html> <html> <head> <title>Creating DOM elements</title> <script src="jquery.min.js"></script> ...
Read now
Unlock full access