Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 480.8k

How clear data from the form after send from form?

Nov 15 2021 12:22 PM

Hi Team

 

I have a form and when send is performed using submit, the data gets written not removed. Is there way i can clear once this is send?

 

// View

  <form action="/" method="post">
       

        <!--Title-->
        <div class="form-group">
            <input asp-for="Title" id="Title" type="text" class="form-control" value="Title" />
        </div>

        <!--Description-->
        <div class="form-group">
            <input id="Description11" type="text" class="form-control" value="Description" />
        </div>

        <!--Date-->
        <div class="form-group">
            <input asp-for="Date" id="Date" type="Date" class="form-control" value="Date_Occured" />
        </div>

        <!--Time-->
        <div class="form-group">
            <input asp-for="Time" id="Time" type="time" class="form-control" value="Time"/>
        </div>

        <!--Assignment_Group-->
        <div class="form-group">
            <input asp-for="Assignment_Group" id="Assignment_Group" type="assignment_group" class="form-control" value="Assignment_Group" />
        </div>


        <!--Reported_CI-->

        <div class="form-group">
            <input asp-for="Reported_CI" id="Reported_CI" type="reported_ci" class="form-control" value="Reported_CI"/>
        </div>

        <!--Submit form-->
        <div class="form-group">
            <button type="button" class="btn btn-primary" id="btnSubmit">Submit</button>
        </div>

    </form>


Answers (2)