jQuery if javascript is disabled/enabled?
<p>I was <a href="http://tutsplus.com/lesson/slides-and-structure/" rel="nofollow">watching this video tutorial</a> and I noticed he said that he's added this:  </p>

<p><code>$('html').addClass('js');</code>  </p>

<p>He said that if javascript is disabled, then the class won't show, but if it is enabled, the class will show. I don't understand how that works. How does jQuery know if JS is enabled, and to apply a certain class when JS is enabled/disabled? There's no if statement. I'm a tad bit confused.  </p>

<p>"If HTML has a class of JS, javascript is available, if not, JS is not available". I don't understand that.  </p>

<p>He also mentioned a "JavaScript hook"..?</p>

<p>Watch from 2:30 to 3:40, it's where he explains it but I don't understand.</p>

<p>Thanks!</p>

<p><strong>edit: I cannot believe the answer was so simple and I did not see it. Thanks guys.</strong></p>
