我目前有一个模态设置,我只想在填写必填字段时打开,然后点击提交按钮。目前,只有在剩余必填字段时才会出现。
<form class="form-horizontal" runat="server">
<div class="container">
<br />
<legend>32 User Search</legend>
<div class="form-group">
<asp:Label ID="lb32Number" runat="server" Text="32 Number:" CssClass="col-md-4 control-label"></asp:Label>
<div class="col-md-4">
<asp:TextBox ID="tb32Number" runat="server" CssClass="form-control input-md" required=""></asp:TextBox>
</div>
</div>
<div class="form-group">
<div class="col-md-4"></div>
<div class="col-md-4">
<asp:Button ID="btSearch" runat="server" text="Search" CssClass="btn btn-primary" data-toggle="modal" data-target=".user" />
</div>
</div>
<div class="modal fade user" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
<asp:Label ID="tbName" runat="server"></asp:Label>
</div>
</div>
</div>
</div>
</div>
</form>
另请注意,我正在使用bootstrap和ASP。
感谢您提供任何帮助。