How can I clear the modal data, sometimes the user types the data, but does not save, and if it opens the modal again, the data is there, I would like to clear this data, how should I proceed? Sometimes it also happens to save, and when clicking to add the new data, the old data that has been saved is still in the modal. Here is the code for my modal:
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="grid-10">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Cadastrar Banco</h4>
</div>
<div class="modal-body">
<br />
<asp:Label ID="Label2" runat="server" Text="Nome"></asp:Label>
<asp:TextBox ID="txtNome" runat="server" CssClass="radiusInput"></asp:TextBox>
<br />
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="Número"></asp:Label>
<asp:TextBox ID="txtNumero" runat="server"></asp:TextBox>
<br />
<br />
<br />
</div>
<div class="modal-footer">
<asp:Button ID="Button1" runat="server" Text="Gravar" CssClass="radiusInput" OnClick="Button1_Click1" />
</div>
</div>
</div>
</div>
</div>