/ Published in: jQuery
If body has lang="fr" then add a special class.
We can't use the CSS pseudo selector :lang(fr) because there is currently no support in Safari.
We can't use the CSS pseudo selector :lang(fr) because there is currently no support in Safari.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('body[lang=fr]').addClass('french');