Portfolio - How do I add JQuery to my PenCode project?

Portfolio - How do I add JQuery to my PenCode project?
0

#1

Hi,

I want to use JQuery for my input fields. I added the animate.css library but when I write my JQuery code in the HTML section of my pen, it doesn’t work. Do I write my JQuery code in the JS section or I need to add a different library?

Basically, my question is what do I need to do to make the JQuery work on my pen?

Thanks!


#2

Easiest way is to go to Settings at the top right corner of your pen, then go to the JavaScript section. At the bottom there is a dropdown list of libraries you can import into your project, jQuery is one of them.


#3

… And then you write your jQuery in the JS section :slight_smile:


#4

Check out this link that will explain how you can add JQuery to CodePen.
Add JQuery to CodePen