0

I have been trying to clear my registration form after successful registration so that it can return the same form empty without reloading the entire page. please am workiing with ajax and still new to it

1 Answers1

1

jQuery:

$("#formID")[0].reset(); 

or in javasscript

document.getElementById("formID").reset();

you could reset the values of the form as long as you use it within success() or complete() callback function

Pbk1303
  • 3,702
  • 2
  • 32
  • 47