×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Aug 1, 2017 6:46 PM
Views: 2
Tags: no tags
  1. document.getElementById("test").reset();
  2.  
  3. <form #myForm="ngForm" (submit)="addPost(); myForm.reset()"> ... </form>