0
How do I clear my form text fields after submit?
Can you send to me the code and where to put it? Most websites say the code but not where to place it. I'm using ajax.
5 Antworten
+ 1
use yourFormElement.reset()
put it after the request are successful with the desired response
0
yourForm must be replaced with my form name right?
0
yes
0
Thank you a lot. Already working.