Tuesday, 20 August 2013

Get a css value from Bootstrap css with JavaScript/ jQuery?

Get a css value from Bootstrap css with JavaScript/ jQuery?

I want to get the font sizes of headings h1,h2,h3,h4,h5,h6 which are
respectively 36px, 30px, 24px, 18px, 14px, 12px respectively [in
bootstrap.css] and alert them in the console. The jQuery method I've seen
is $('element').css('property'), but this is not working for external css
[i.e bootstrap.css]. Should I have to include any more lines of code.

No comments:

Post a Comment