# Using Jquery in bubble.io app

**URL:** <https://forum.bubble.io/t/using-jquery-in-bubble-io-app/116819>\
**Category:** Need help\
**Created:** [October 19, 2020, 9:46am UTC](https://forum.bubble.io/t/using-jquery-in-bubble-io-app/116819 "2020-10-19T09:46:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![winsocial](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@winsocial](https://forum.bubble.io/u/winsocial)\
**Post date:** [October 19, 2020, 9:46am UTC](https://forum.bubble.io/t/using-jquery-in-bubble-io-app/116819/1 "2020-10-19T09:46:34Z")

</div>

I’ve frequently run into situations where I need to add my custom javascript to bubble, eg making complex financial charts or complex animations. I try to use as minimal libraries as possible, but the one library I can’t really get avoid is jquery. I know Bubble already requires javascript on the app, and in principle I don’t have to add it myself. The trouble I keep running into is unless I explicitly require jquery in my Page’s HTML header, my custom javascript doesn’t work, and when I do add my own jquery it often causes other thinsg to break on the page.

So I wanted to know what is the proper way of usign jquery in bubble, when I have my own javascript that requires it.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [October 19, 2020, 11:03am UTC](https://forum.bubble.io/t/using-jquery-in-bubble-io-app/116819/2 "2020-10-19T11:03:26Z")

</div>

You should create a plugin instead. You can include jquery if needed (the checkbox for jquery is checked by default I think). Bubble will avoid to add jquery multiple time on the page this way. Most of the time this is what causing issue.

---

<div class="post-metadata">

**Author:** ![winsocial](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@winsocial](https://forum.bubble.io/u/winsocial)\
**Post date:** [October 20, 2020, 2:19pm UTC](https://forum.bubble.io/t/using-jquery-in-bubble-io-app/116819/3 "2020-10-20T14:19:42Z")

</div>

> [@Jici](#):
>
> jq

Thanks that was my suspicion, only problem I have with the plugins is how do i deal with adding my own html?

I can easily use jquery to add a few html elements, but if I’ve got a 800 lines of html, how would I do that on the plugins?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 28, 2020, 9:46am UTC](https://forum.bubble.io/t/using-jquery-in-bubble-io-app/116819/4 "2020-12-28T09:46:38Z")

</div>

Closed on December 28, 2020, 9:46am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
