check if attribute is true 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
}