Posted in JQuery

Reset Form Using JQuery

When you submit form using JQuery's Ajax then success, you have to reset form use javascript after submitted. Reset button probably doesn’t helpful in this condition. So you need a JQuery reset function to reset form.

Set your form id for identification in html file
<form id='form_ozylog' ... >

Put this JQuery code for resetting your form
$('#form_ozylog')[0].reset();

View demo

Environment
JQuery 2.1.0