Created
March 27, 2024 03:42
-
-
Save cassidoo/55ac1a1b630eb033064d24d37d1ceaa9 to your computer and use it in GitHub Desktop.
Clear all the inputs on the page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clearInputs() { | |
let inputs = document.getElementsByTagName("input"); | |
for (const i of inputs) { | |
i.value = ""; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment