/ Published in: jQuery
Demo: http://examples.oncemade.com/hasjs.html
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery(function($) { $('body').addClass('hasJS'); }); css .hasJS .module { display: none; }
URL: http://oncemade.com/adding-hasjs-class-when-javascript-is-available/