bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Include jQuery examples as well

Open igll opened this issue 5 years ago • 5 comments

It 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

igll avatar Aug 02 '20 21:08 igll

@XhmikosR @igll I would like to work on it. Can I be assigned to this task?

divya661 avatar Sep 25 '20 15:09 divya661

I have an example for the instance in question at https://v5.getbootstrap.com/docs/5.0/components/navs/#via-javascript, so I'll make a PR. I want to use it as part of my Hacktoberfest, so I will open it in October.

josephgeis avatar Sep 25 '20 18:09 josephgeis

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.

XhmikosR avatar Nov 19 '20 07:11 XhmikosR

Hello! I would like to contribute to this as it is still open. Please let me know

sdkdeepa avatar Aug 28 '22 23:08 sdkdeepa

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

GeoSot avatar Sep 07 '22 10:09 GeoSot