jquery if attr has value 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
}