checking for attribute in jquery code example
Example: jquery if attribute
if ( $('html').attr('lang') == 'fr-FR' ) {
// do this
} else {
// do that
}
if ( $('html').attr('lang') == 'fr-FR' ) {
// do this
} else {
// do that
}