社区
Web开发应用服务器
帖子详情
根据数据库中读出的值,自动选中radiobuttonlist中的项
muxi1021
2012-08-16 05:10:43
怎样根据数据库中读出的值,自动选中radiobuttonlist中的项 求教
...全文
98
1
打赏
收藏
根据数据库中读出的值,自动选中radiobuttonlist中的项
怎样根据数据库中读出的值,自动选中radiobuttonlist中的项 求教
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
我爱荤菜
2012-08-23
打赏
举报
回复
radioButtonList是什么意思?不清不楚的,我猜是一个radio集合吧,每个radio都有一个状态值吧,数据库读出来是什么值,匹配的选中就行了
从
数据库
读写
RadioButton
List
选
中
的
值
从
数据库
取出
RadioButton
List
选
中
的
值
string str = "体育";//这一
项
可以从
数据库
中
读出
for (int j = 0; j < this.
RadioButton
List
1.Items.Count; j++){ if (str == this.
RadioButton
List
1.Items[j].Text.ToString()) { this.RadioButto...
RadioButton
List
控件取
值
和根据
值
选择
1、获取返回
RadioButton
List
控件的
选
中
项
的Value
值
。 function getvalue() { var a = document.all.rblWindow.length; for (var i = 0; i var ss = "r
学习Jquery - 获取
RadioButton
List
中
Radio
项
的
选
中
值
学习Jquery - 获取
RadioButton
List
中
Radio
项
的
选
中
值
Js得到
radiobutton
list
选
中
值
的两种方法
WebForm1 http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> function getvalue() { var b=document.all.rbti
用javascript获取asp.net
中
RadioButton
List
的
选
中
值
近做一页面,需要在客户端获取
RadioButton
List
的
选
中
值
,老道捣鼓一番,得到如下方法function Button1_onclick() ...{ var rbltable = document.getElementById("
RadioButton
List
1"); var rbs= rbltable.getElementsByTagName("INPUT"); for
Web开发应用服务器
5,657
社区成员
20,155
社区内容
发帖
与我相关
我的任务
Web开发应用服务器
Web开发应用服务器相关讨论专区
复制链接
扫一扫
分享
社区描述
Web开发应用服务器相关讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章