Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use twitter bootstrap without jquery?

I work in a project where we don't use JQuery.

Is twitter bootstrap dependant on it ?

like image 869
Zo72 Avatar asked Jan 30 '13 16:01

Zo72


People also ask

Does Bootstrap work without jQuery?

Bootstrap 5 is designed to be used without jQuery, but it's still possible to use our components with jQuery. If Bootstrap detects jQuery in the window object it'll add all of our components in jQuery's plugin system; this means you'll be able to do $('[data-bs-toggle="tooltip"]').

Can Bootstrap be used without JavaScript?

It is important to state that all Bootstrap plugins can be used purely through the markup API, without writing a single line of JavaScript. This is Bootstrap's first-class API and should be your first consideration when using plugins.

Does Bootstrap depend on jQuery?

Bootstrap uses jQuery for JavaScript plugins (like modals, tooltips, etc). However, if you just use the CSS part of Bootstrap, you don't need jQuery.

Is jQuery compulsory?

It solely depends on what kind of area you would be working in. If you are creating new websites then certainly you will not require jquery. However, if you are working in an area where they want you to modify old websites that involves jquery then definitely jquery is must.


1 Answers

Twitter bootstrap itself isn't jQuery dependant.

If you use just the CSS part of it, you won't need jQuery.

If you use the Javascript plugins you need jQuery, since they are jQuery plugins.

v3: http://getbootstrap.com/javascript/

v4: https://getbootstrap.com/docs/4.0/getting-started/javascript/

like image 152
Bruno Campos Avatar answered Sep 19 '22 15:09

Bruno Campos