I seem to be having trouble with my code. I need to say:
if ( $(\'html\').attr(\'lang\').val() == \'fr-FR\' ) { // do this } else { // do that }
Just remove the .val(). Like:
if ( $('html').attr('lang') == 'fr-FR' ) { // do this } else { // do that }