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 de77ef4 commit 7898d45Copy full SHA for 7898d45
HiddenSearch/script.js
@@ -0,0 +1,7 @@
1
+const search = document.getElementById('search');
2
+const btn = document.getElementById('btn');
3
+const input = document.querySelector('input');
4
+btn.addEventListener('click', () => {
5
+ search.classList.toggle('active');
6
+ input.focus();
7
+});
0 commit comments