Sunday, May 19, 2024
57
rated 0 times [  61] [ 4]  / answers: 1 / hits: 27557  / 7 Years ago, wed, april 5, 2017, 12:00:00

Is there any way to get the Bootstrap version via calling a function? I did some research but couldn't find any way. The version information is included in the comments at the beginning like this:


`/*!



But in case the comments are removed how do I get the bootstrap version? Bootstrap plugins have a version defined in them but I'm looking for the general Bootstrap version, not version of a particular plugin.


More From » twitter-bootstrap

 Answers
111

The version of each of Bootstrap's jQuery plugins can be accessed via the VERSION property of the plugin's constructor. For example, for the tooltip plugin:



$.fn.tooltip.Constructor.VERSION // => 3.3.7


src //getbootstrap.com/javascript/#js-version-nums



if you mean from the css, then yu ahve to AJAX the file and .match(/v[.d]+[.d]/);


[#58260] Monday, April 3, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ibrahimgilbertoz

Total Points: 420
Total Questions: 112
Total Answers: 92

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
;