Category Covered

Javascript reset form after submit

You can reset form using javascript or ajax on several way such as  


$.ajax({type: "POST",
        url: _baseurl + "/index.php/",       
        data: str,       
        success: function (results)  {
        $('#replyform').reset();// call reset method of form       
        }  
    });