# Dropdowns Not Working on Website After Code Upload to InfinityFree Hosting

**URL:** <https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075>\
**Category:** Hosting Support\
**Created:** [December 3, 2023, 9:18am UTC](https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075 "2023-12-03T09:18:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![constructionskill](https://forum.infinityfree.com/letter_avatar/constructionskill/32/6_449c533f586939b6e5f246632a46421f.png) [@constructionskill](https://forum.infinityfree.com/u/constructionskill)\
**Post date:** [December 3, 2023, 9:18am UTC](https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075/1 "2023-12-03T09:18:39Z")

</div>

### [http://constructionskillcard.co.uk/Book-card.html](http://constructionskillcard.co.uk/Book-card.html)

### I am encountering an issue with my website hosted on InfinityFree. I have successfully uploaded my code via cPanel, and the webpage functions properly on my local system. However, when accessing the site online, certain dropdowns are not opening as expected. I suspect this might be a hosting-related problem. I have attached screenshots for reference:

Dropdowns Working Locally - [Pasteboard - Uploaded Image](https://pasteboard.co/BXeEfGklTkdy.png)

If anyone has experienced a similar issue or has expertise in web hosting, your insights would be greatly appreciated. Please help me understand why the dropdowns are not functioning on the live site despite working locally.

### [And I’M USING DOMAIN NAME OF GODADDY]

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [December 3, 2023, 9:51am UTC](https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075/2 "2023-12-03T09:51:46Z")

</div>

Hey there, welcome to the infinityfree forum. I’ve checked your site and found the issue. You’ve got two missing scripts on your website. And the dropdowns aren’t working because in your JS, it’s giving an error.

 ![dfdfsdfsdfsfsf](https://forum-cdn.infinityfree.net/original/3X/d/a/da58d36faf56d3ecaf1f4fe12d2d151fb8f2a595.jpeg)

`Uncaught TypeError: $(...).counterUp is not a function at main.js:53:37 at main.js:136:3`

This is caused because the `counterUp` plugin depends on jQuery. and you haven’t included it.

Insert this script tag into the inside of the head tag.

```auto
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

```

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [December 3, 2023, 10:32am UTC](https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075/3 "2023-12-03T10:32:06Z")

</div>

user has jQuery

 ![1](https://forum-cdn.infinityfree.net/original/3X/b/d/bdecfee00b703944a2d5e8ca83d47f5368984a9c.jpeg)

* * *

 ![Screenshot 2023-12-03 112203](https://forum-cdn.infinityfree.net/original/3X/4/a/4ae15eadc7809778a006c6cfcb5de988083e5a6c.jpeg)

when I disable this CSS file (Book-card.css), then cards are displayed,so the problem is related to that file (and maybe also elsewhere)

* * *

Other

in addition, this file is missing `http://constructionskillcard.co.uk/script.js`  
it probably has this (down) defined in it which is currently causing the problem about $

![image](https://forum-cdn.infinityfree.net/original/3X/2/f/2f67227041e2866657edb247013ccef69ccfbd21.png)

(the plugin with that “name” is missing)

![2](https://forum-cdn.infinityfree.net/original/3X/5/0/50821273a08e940e4f08f8a36dbb8c347aa810d0.jpeg)

Upload ALL again and make sure that all scripts and other files are in their place

> **[GitHub - bfintal/Counter-Up: Counter-Up is a lightweight jQuery plugin that...](https://github.com/bfintal/Counter-Up)**
>
> Counter-Up is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible. - GitHub - bfintal/Counter-Up: Counter-Up is a lightweight jQuery plugin that counts u...

* * *

For uploading (instead of monstaFTP) it is best to use the FTP client mentioned in this article

> [@How to upload files with FTP](https://forum.infinityfree.com/docs?topic=49306):
>
> The best and most reliable way to upload files is to use FTP. To upload files with FTP, you will need to following: Your FTP username Your FTP password The FTP hostname An FTP client You can find your FTP username, password and hostname in the client area under the FTP Details section. The FTP password is the same as your hosting account and control panel password, which is different from the password for the client area. If you like videos better then text guides, you can find one at the bot…

---

<div class="post-metadata">

**Author:** ![constructionskill](https://forum.infinityfree.com/letter_avatar/constructionskill/32/6_449c533f586939b6e5f246632a46421f.png) [@constructionskill](https://forum.infinityfree.com/u/constructionskill)\
**Post date:** [December 3, 2023, 11:27am UTC](https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075/4 "2023-12-03T11:27:39Z")

</div>

Thank you guys, it’s working now. The thing is at the time of uploading the site folders and pages (for first time) that time in the lib folder “counterup” folder itself is missing by chance i’m remembering failed to upload and that error i seen now that’s why drop-downs are not working, now I’ve uploaded that folder & all the stuff is perfectly working fine.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [December 10, 2023, 11:28am UTC](https://forum.infinityfree.com/t/dropdowns-not-working-on-website-after-code-upload-to-infinityfree-hosting/87075/5 "2023-12-10T11:28:30Z")

</div>

Closed on December 10, 2023, 11:28am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
