- Load jQuery in HTML file
- Use jQuery to manipulate HTML
Everyone loves a good gif of puppies and kids doing funny things, so let's use jQuery to make sure we have a good one on our page.
We'll be coding our solution in html/index.html
.
-
Load jQuery in
index.html
using the following URLhttp://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
Remember, load scripts at the bottom of thebody
. -
Before the closing body tag, use jQuery to append this gif (https://s3.amazonaws.com/learn-verified/painting-with-dog.gif) to the
div
with theid
image
. (Check out the resource below if you need a hint!)
View Modifying HTML with jQuery Lab on Learn.co and start learning to code for free.
View Modifying HTML with jQuery Lab on Learn.co and start learning to code for free.