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

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!

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.

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

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

1 Like