Chat with Thomas | Profile

Welcome to the Modern Web Design.

📖 Adding jQuery into HTML

When using jQuery in Codepen, we only need to specific the library by the quick add feature. (Pen setting > JavaScript > Quick Add > jQuery)

But in real world, we aren’t using sandbox. We write HTML and JavaScript code in separated files and need to import all the external scripts file into the HTML.

So, make sure you have included the jQuery library into the web page before running your jQuery code.

<script src='http://code.jquery.com/jQuery.min.js'></script>