showing results for - "clear input field data on button click"
Debby
22 Mar 2020
1<button type="button" onclick="ClearFields();">Clear</button>
2
3function ClearFields() {
4
5     document.getElementById("textfield1").value = "";
6     document.getElementById("textfield2").value = "";
7}
queries leading to this page
button onclick clear text fieldclear form inputshtml clear button to remove input valuesonclick button clear input field javascripthow to clear a texfield onclick of a buttononclick clear input field how to clear a text input box when the submit button is clickedclear all form inputs on clickhow to empty an input field when click buttonform input value clearclear on click input cssclear the input field when you click on the buttonclear form button typeclear input on button clickjavascript clear input field on button clickclear input after button click htmlhow to clear out an input field when a button is clicked in javascriptclear text field on button click javascripthow to cleare text of input field to button click eventbutton to clear input fieldclear input field on click javascriptinput on buton click clear inputclear input after button click javascripthow not to clear input value when clicking submitafter onclick input value clear clear a input value after clicking submitreset input field on button click javascriptclear input value on clickhow to clear input field after button click staclear input field javascript onclickhtml clear button in inputinput field remove delete button 28click 29 send and clear inputclear input onclick fatimesclear input field data on button clickhow to clear input field after button clickform input type clearclear input field on button click javascripton out click clear input fieldclear text from input buttonhow to clear input field after clicking submit buttonclear input on clickhtml input box how to clear on button clickhow to clear a value inside an input after onclick using javascriptonclick clear input field javascriptclear input text on button click javascripthow to not clear form values after button pressedhow to clear input after button clickedhow to clear input tag after button clickjavescripty clear input field javascript onclickclear input onclick javascriptafter click on button clear the input fieldhtml input clear buttonjavascript clear text input on buttonhow to clear input field after clicking butonreset input value after button clickhtml cancel button clear inputhtml clear input field on clickhow to clear input tag value onclickinput field with clear buttonhow to clear input field after submit javascripthow to clear input field on click in javascripthtml input add button to clear inputclear form data on clickclear input field data on button click