Return to Snippet

Revision: 45520
at May 3, 2011 06:00 by diogoweb


Initial Code
jQuery(function($) {
$('body').addClass('hasJS');
});

css

.hasJS .module {
display: none;
}

Initial URL
http://oncemade.com/adding-hasjs-class-when-javascript-is-available/

Initial Description
Demo: http://examples.oncemade.com/hasjs.html

Initial Title
adding a class to the body if JavaScript was available

Initial Tags


Initial Language
jQuery