We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751b05d commit 0f49f28Copy full SHA for 0f49f28
10_checkbox _challenge/index.html
@@ -94,6 +94,23 @@
94
</div>
95
96
97
- <script></script>
+ <script>
98
+ const checkboxes = document.querySelectorAll(
99
+ '.inbox input[type ="checkbox"]'
100
+ );
101
+ let lastChecked;
102
+ function handleCheck(event) {
103
+ let inBetween = false;
104
+ if (event.shiftKey && this.checked) {
105
+ checkboxes.forEach(checkbox => {
106
+ console.log(checkbox);
107
+ });g
108
+ }
109
+ lastChecked = this;
110
111
+ checkboxes.forEach(checkbox =>
112
+ checkbox.addEventListener("click", handleCheck)
113
114
+ </script>
115
</body>
116
</html>
0 commit comments