Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

form.reset function in javascript

<form id='myform'>
  ...
</form>

const submitForm = () => {
  ...some API call
  document.getElementById("myform").reset();
}
 
PREVIOUS NEXT
Tagged: #function #javascript
ADD COMMENT
Topic
Name
9+6 =