使用jQuery的动态控件 [英] dynamic controls using jquery

查看:79
本文介绍了使用jQuery的动态控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我想添加动态控件,让我们说(一个下拉菜单,两个文本框)
为此,当用户单击按钮时,我有一个按钮,添加了新行
这三个控件

hi
i want to add dynamic controls let us say(one dropdown ,two text boxes )
for that i have a button when user click on button a new row added
with these three controls

how to do this using jquery?

推荐答案

<div style="display:inline">
<input type="button" id="txtPlain" value="Add Plain Text" style="" />
<input type="button" id="txt" value="Add TextBox" style="" />
<input type="button" id="chk" value="Add CheckBox" style="" />
<input type="button" id="rad" value="Add Radio" style="" />
<input type="button" id="btn" value="Add Button" style="" />
</div>
<div id="holder">




和您的JQUERY,您可以根据需要进行更改




and your JQUERY , you can change as per your requirement


(" span>).click(function(){ var
("#txt").click(function(){ var


ctrl =
ctrl =


这篇关于使用jQuery的动态控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆