Skip to content

Instantly share code, notes, and snippets.

@Andygmb
Created January 28, 2015 00:53
Show Gist options
  • Save Andygmb/04af299cab43e8b11f82 to your computer and use it in GitHub Desktop.
Save Andygmb/04af299cab43e8b11f82 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.2.js"></script>
<script>
$("button").on("click", function(e){
e.preventDefault()
})
</script>
</head>
<body>
<a href="/red/1"><button> Click me to turn red on</button></a>
<a href="/red/0"><button> Click me to turn red off</button></a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment