Return to Snippet

Revision: 24244
at February 24, 2010 10:23 by matthalliday


Initial Code
$('body[lang=fr]').addClass('french');

Initial URL

                                

Initial Description
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.

Initial Title
Add a language class name

Initial Tags
jquery

Initial Language
jQuery