单击复选框时添加输入文本框 [英] Adding input text boxes when we click on check box

查看:349
本文介绍了单击复选框时添加输入文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在单击单选按钮时动态添加输入文本框.我需要在单击单选按钮时将5个以上的输入文本框添加到jsp页面.

how to dynamically add input textbox on clicking radio button.I need more than 5 input text boxes that are to be added to a jsp page when i click on radio button.

推荐答案

在单选按钮上定义客户端onclick事件.然后在Javascript中,定义将由onclick事件调用的方法.
在此方法中,根据需要添加inout文本框,并将其放置在面板/占位符中所需的位置.试试吧!
Define a client side onclick event on radio button. Then in Javascript, define the method that will be invoked by onclick event.
In this method, based on your need add the inout textbox and place it in the panel/placeholder whereever needed. Try!


这篇关于单击复选框时添加输入文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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