Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed jQuery Basics!
You have completed jQuery Basics!
Preview
Learn how to create new HTML elements and insert them into the DOM.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
the button dynamically and
add it to the page with jQuery.
0:00
I'll create a space at the top of
the document and make some notes.
0:01
So we need to create
the Reveal Spoiler button,
0:06
and append to web page.
0:12
To create an element in jQuery,
all we need to
0:16
do is pass a string containing
valid HTML to the jQuery method.
0:19
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up