Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created February 27, 2013 01:32
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 tmcw/5044130 to your computer and use it in GitHub Desktop.
Save tmcw/5044130 to your computer and use it in GitHub Desktop.
<!doctype html>
<head>
<style>
#map {
width: 800px;
height:800px;
}
</style>
</head>
<body>
<input type='checkbox' id='a' name='a'><label for='a'>true</label>
<input type='checkbox' id='b' name='b'><label for='b'>false</label>
<script>
var a = document.getElementById('a');
var b = document.getElementById('b');
a.onchange = function() {
b.checked = '';
}
b.onchange = function() {
a.checked = '';
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment