Home >Web Front-end >JS Tutorial >jQuery study notes: Creating DOM elements_jquery
Using DOM methods to create element nodes usually requires the use of document.createElement(), document.createTextNode(), and appendChild(), which is very troublesome.
And jQuery can directly create DOM elements using $
Content created with jQuery
");The above code is equivalent to javascript
Example: Using jQuery to create DOM