Getting jQuery to work
# March 9, 2013 at 8:08 pm
So I’ve been teaching myself jQuery using Codeacademy, and I have actually picked up a lot from it. One thing I’m not understanding is why this is not working. I’m sure my linking is wrong.. I might try writing the script directly on my index.html page.
Can you guys see why this is not working?
Codepen: [http://cdpn.io/DeBup](http://cdpn.io/DeBup “http://cdpn.io/DeBup”)# March 9, 2013 at 9:56 pm
So I added your new code and it still seemed not to work.
This is the jQuery code I am using. I don’t think I linked it correctly.. Do I have to link the jQuery page to my HTML one and do something else? All I have done is linked my jQuery page to my HTML page.
Here is my jQuery code:
});# March 9, 2013 at 11:03 pm
Alright, so I added the semicolon praying it would work.. What a let down. I’m right there with you now.. I’m not sure why this code is not working. It seems to be set up perfectly fine?
I updated the codepen if you want to take a look now. The jQuery code should make the div with the ID of object disappear when clicked.
Codepen: [http://cdpn.io/xGnrd](http://cdpn.io/xGnrd “http://cdpn.io/xGnrd”)
You must be logged in to reply to this topic.