I\'m trying to accommodate users without JavaScript. (By the way, is it worth the effort nowadays?)
In one HTML file I\'d like part of it execute if scripts are on
The jQuery way:
$(document).ready(function(){ $("body").removeClass("noJS"); });
Pseudo CSS
body .no-js-content display: none; body.noJS .main display: none; .no-js-content display: block;
HTML
This will show if JavaScript is activated This will show when JavaScript is disabled