使用JavaScript启用和禁用gridview内的文本框 [英] Enable and Disable textbox inside gridview using javascript

查看:56
本文介绍了使用JavaScript启用和禁用gridview内的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,大家晚上好,当我根据选定的单选按钮列表值编辑该行启用和禁用的行时,我使用gridview包含一个文本框的网格.该单选按钮位于网格内.请帮助我



在此先感谢


Meganathan M

Good evening to all in my project i use gridview that grid having one textbox when i edit the row the textbox enable and disabled based on the selected radiobuttonlist value.that radiobutton placed inside the grid. please help me



thanks in advance
by

Meganathan M

推荐答案

使用JQuery可以像这样完成.
With JQuery it can be done like this.


(" ).change(函数() {
("radio button").change(function() {


(" ).attr(" " ); });
("textbox").attr("diabled", "disabled"); });



或将其应用于所有单选按钮



Or this to apply to all radio buttons


这篇关于使用JavaScript启用和禁用gridview内的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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