materialize icon indicating copy to clipboard operation
materialize copied to clipboard

$scope.formName.$setPristine

Open pradeepb6 opened this issue 11 years ago • 3 comments

Is there any way to reset the form after its get submitted? Some classes like "valid" from input tag and "active" from labels should be removed so that form looks to original state after form is submitted. as of now i am removing classes manually using jquery.

pradeepb6 avatar Apr 06 '15 22:04 pradeepb6

Just use form reset

Dogfalo avatar Apr 06 '15 22:04 Dogfalo

I used reset but dint workout for me. could you please check here: https://github.com/pradeepb6/firstExample/tree/master/app and let me know if i am doing wrong. file to be checked index.html and app.js.

pradeepb6 avatar Apr 06 '15 22:04 pradeepb6

Just use this http://www.w3schools.com/jsref/met_form_reset.asp

Dogfalo avatar Apr 06 '15 22:04 Dogfalo