如何使用Jquery在多少单击按钮上创建Div竞争 [英] How Do I Create Div Contend Base On How Many Click On A Button Using Jquery
本文介绍了如何使用Jquery在多少单击按钮上创建Div竞争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我跟随div竞争,
i have following div with its contend,
<div class="form-group" id="newcodediv">
<label class="col-sm-2 control-label">
Code:
</label>
<div class="col-sm-3">
<asp:TextBox CssClass="form-control" runat="server" ID="txtcode" Required="required" />
<asp:RegularExpressionValidator runat="server" ID="revcode" Display="Dynamic" ControlToValidate="txtcode" ErrorMessage="Digits Only" ValidationExpression="^[0-9 ]+$"></asp:RegularExpressionValidator>
</div>
<label class="col-sm-2 control-label">
Fine:
</label>
<div class="col-sm-3">
<asp:TextBox CssClass="form-control" runat="server" ID="txtfine" Enabled="false" Required="required" />
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2" Display="Dynamic" ControlToValidate="txtContactNo" ErrorMessage="Digits Only" ValidationExpression="^[0-9 ]+$"></asp:RegularExpressionValidator>
</div>
<asp:Button ID="newcode" runat="server" Text="AnotherCode" CssClass="btn btn-blue" OnClick="newcode_Click" />
</div>
<asp:Panel ID="Panel1" runat="server"></asp:Panel>
</div>
我的要求是,当用户按钮上的一次或多次时间基于点击次数,在orignal div下面的面板中创建的div
my requirement is that when user one or more time on the button base on number of click,that div created in the panel below the orignal div
推荐答案
> < / asp:RegularExpressionVal idator >
< / div >
< label class = col-sm-2 control-label >
罚款:
< / label >
< div < span class =code-attribute> class = col-sm-3 >
< asp:TextBox CssClass = form-control runat = server ID = txtfine 已启用 = false 必填 = required / >
< asp:RegularExpressionValidator runat = server ID = RegularExpressionValidator2 显示 = 动态 ControlToValidate = txtContactNo ErrorMessage = 仅限数字 Validati onExpression = ^ [0-9] +
"></asp:RegularExpressionValidator> </div> <label class="col-sm-2 control-label"> Fine: </label> <div class="col-sm-3"> <asp:TextBox CssClass="form-control" runat="server" ID="txtfine" Enabled="false" Required="required" /> <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2" Display="Dynamic" ControlToValidate="txtContactNo" ErrorMessage="Digits Only" ValidationExpression="^[0-9 ]+
> < / asp:RegularExpressionValidator >
< / div >
< asp:按钮 ID = newcode runat < span class =code-keyword> = server 文本 = AnotherCode CssClass = btn btn-blue OnClick = newcode_Click / >
< / div >
< asp:Panel ID = Panel1 runat = 服务器 > < / asp:Panel >
< / div >
"></asp:RegularExpressionValidator> </div> <asp:Button ID="newcode" runat="server" Text="AnotherCode" CssClass="btn btn-blue" OnClick="newcode_Click" /> </div> <asp:Panel ID="Panel1" runat="server"></asp:Panel> </div>
我的要求是当用户一个或多个按钮上的时间基于点击次数,在orignal div下方面板中创建的div
my requirement is that when user one or more time on the button base on number of click,that div created in the panel below the orignal div
这篇关于如何使用Jquery在多少单击按钮上创建Div竞争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文