Skip to content

Instantly share code, notes, and snippets.

@pardamike
Last active November 21, 2017 23:47
Show Gist options
  • Save pardamike/a0a9993b0e5d35f34abac2a601542301 to your computer and use it in GitHub Desktop.
Save pardamike/a0a9993b0e5d35f34abac2a601542301 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
</head>
<style>
/* Styles in here */
</style>
<body>
<button id="someButton">Click Me!</button>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
<script>
console.log("This is jQuery:");
console.log($('#someButton'));
console.log("This is Javascript:");
console.log(document.getElementById('someButton'));
console.log("This is Javascript using console.dir:");
console.dir(document.getElementById('someButton'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment