SyntaxFix
Write A Post
Hire A Developer
Questions
Just remove the .val(). Like:
if ( $('html').attr('lang') == 'fr-FR' ) { // do this } else { // do that }