https://www.w3schools.com/howto/tryit.asp?filename=tryhow_html_clear_input2 ' Cancella il campo di input quando fai clic sul pulsante: <!DOCTYPE html> <html> <body> <p>Clear the input field when you click on the button:</p> <button onclick="document.getElementById('myInput').value = ''">Clear input field</button> <input type="text" value="Blabla" id="myInput"> </body> </html> |