Course Hero Logo
This textbook is available Logo
JavaScript: The Web Warrior Series 6th Edition

JavaScript: The Web Warrior Series (6th Edition)

Book Edition6th Edition
SubjectComputer Science
Chapter 12, Implementing jQuery, Short Quiz, Exercise 1
Page 825

What is the first step in using jQuery in a project?


The jQuery library is not included in the JavaScript package and so it is important to add the jQuery file to the project before using it. The jQuery library is available as a file with the .js extension. Thus, it can be linked to any HTML file belonging to the project using the <script> element after downloading it to the local machine. 

Another option is to link to the jQuery library source file available online which is hosted through the Content Delivery Network (CDN).

Verified Answer

The first step is to link the .js file corresponding to the jQuery library in the project by downloading it from jQuery website and placing it in the same folder as that of the HTML file that uses it. 

How would you rate this answer and explanation?
Did you like this example?
Subscribe for full access
Page 825