天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
查看: 2117|回复: 2

单选按钮如何设置默认选项

[复制链接]
huangxj 发表于 2011-5-23 14:16:53 | 显示全部楼层 |阅读模式
本帖最后由 shary 于 2011-5-31 14:16 编辑

单选按钮如何设置默认选项
列如我有组选择 性别的的radio 如何让它默认选 男?
shary 发表于 2011-5-23 14:45:14 | 显示全部楼层
您好,您可以在单选框的选项脚本中写类似脚本:
var opts=$TOOLS.createOptions();
opts.add("女","0");
opts.add("男","1",true);
opts;

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-12 12:16

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表