Skip to content

Instantly share code, notes, and snippets.

@Geruhn
Last active December 21, 2015 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Geruhn/6291349 to your computer and use it in GitHub Desktop.
Save Geruhn/6291349 to your computer and use it in GitHub Desktop.
JavaScript: jsChecker
$(document).ready(function() {
var jsChecked = document.createAttribute('class');
jsChecked.nodeValue = 'js';
document.getElementsByTagName('body')[0].setAttributeNode(jsChecked);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment