# How to add jquery?

**URL:** <https://forum.shopware.com/t/how-to-add-jquery/89902>\
**Category:** Shopware 6 (English)\
**Created:** [23. August 2021 um 07:42 UTC](https://forum.shopware.com/t/how-to-add-jquery/89902 "2021-08-23T07:42:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [23. August 2021 um 07:42 UTC](https://forum.shopware.com/t/how-to-add-jquery/89902/1 "2021-08-23T07:42:50Z")

</div>

I have added some jquery code in the creation of a custom component. In the console I am getting an error:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/2/24fb1cb0314d4c5bc7e5483c864c41cf8e1b33c1.png)  
I have downloaded jquery and placed it inside my component’s folder. The code I am using in the index.js file is:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/f/f3f3a2556953a093a92631b5581e6aa61ea7c8fb.png)  
But it is not working. How to fix this?
