I am unable to get my collapse button to work

I have been working on making a website but can’t to get the navbar working on mobile becuase the collapse button won’t work! If someone could help me that would be great because I would really like to get this working.

Welcome to the forum! Do you have your code on Codepen or other such site where we can see your code? Without seeing the code it is not possible to see what the issue is.

Once you’re there go in the index.html that’s where all the code is.

You still need to add the JS files.

Thanks. I will try this leter, and let you know how it goes. Thank you

I have downloaded it and put it on the js folder and css folder and linked it but still nothing.

Update your GitHub repo, so we can take a look.

I think I have actually got it now by looking at the index.html of “bootswatch” website which has the theme I was using so I checked the code and it had some extra files like jquery and a different bootstrap.js, I downloaded those, added the code and it works!! I guess it has to have jquery in order for the data-toggle=“collapse” to work.

Exactly. The page I linked you to contains this information about adding jQuery and popper.js