Include jQuery examples as well
See original GitHub issueIt would be great to have all examples of plain JavaScript code with their jQuery equivalent. E.g. at https://v5.getbootstrap.com/docs/5.0/components/navs/#via-javascript
At least at https://v5.getbootstrap.com/docs/5.0/getting-started/javascript/#still-want-to-use-jquery-its-possible showing in parallel the jQuery code with the equivalent plain JavaScript code.
JFYI: I was not able to get $('[data-toggle="tooltip"]').tooltip()" working because I don’t see its connection with the code at https://v5.getbootstrap.com/docs/5.0/components/tooltips/#example-enable-tooltips-everywhere
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
An Introduction to jQuery | DigitalOcean
jQuery is a JavaScript file that you will link to in your HTML. There are two ways to include jQuery in a project,...
Read more >Different ways to include jQuery in a Webpage - GeeksforGeeks
In this article, we are going to learn different ways to include jQuery on a page. Basically, we know that jQuery comes with...
Read more >The Best jQuery Examples - freeCodeCamp
jQuery is the most widely-used JavaScript library, and is used in more than half of all major websites. It's motto is "write less,...
Read more >Getting Started with jQuery UI
jQuery UI is a widget and interaction library built on top of the jQuery JavaScript Library that you can use to build highly...
Read more >Load jQuery with Javascript and use jQuery - Stack Overflow
@Scott Yes. I have an application in which at installation it loads both jquery as well as a script. I need to load...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

After discussing this with @mdo on Slack, we’d prefer to have a separate section in docs with a couple of examples and link to it from each component. We believe it’s cleaner this way than adding a jQuery example in each component.
So, perhaps a new partial linking to the javascript examples.
Based on this documentation section https://getbootstrap.com/docs/5.2/getting-started/javascript/#optionally-using-jquery, I suppose we can close this issue
/cc @mdo