title: jQuery check if attr = value
body: <p>I seem to be having trouble with my code. I need to say:</p>
  
  <pre><code>if ( $('html').attr('lang').val() == 'fr-FR' ) {
      // do this
  } else {
      // do that
  }
  </code></pre>
  
  <p>When I check the console, I just get an error telling me this isn't a function. Help would be appreciated.</p>
  
  <p>Thanks,</p>