Skip to content

Instantly share code, notes, and snippets.

@abalter
Last active October 30, 2017 04:37
Show Gist options
  • Select an option

  • Save abalter/29150d3b1fe70dc06acaa1e0519c3a99 to your computer and use it in GitHub Desktop.

Select an option

Save abalter/29150d3b1fe70dc06acaa1e0519c3a99 to your computer and use it in GitHub Desktop.
simple javascript test page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>runme</title>
</head>
<body>
<h1 id="changeme">If you see this then jQuery did not run.</h1>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script>
//document.querySelector('#changeme').innerHTML = "If you see this, then JavaScript ran.");
$('#changeme').html("If you see this, then jQuery ran.");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>runme</title>
</head>
<body>
<h1 id="changeme">If you see this then JavaScript did not run.</h1>
<script>
document.querySelector('#changeme').innerHTML = "If you see this, then JavaScript ran.";
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment