<label for="a">
<html:radio name="usersplatform" property="uspl_check_ip" value="1" styleId="uspl_check_ip1">
<bean:message key="display.yes" />
</html:radio>
</label>
<label for="b">
<html:radio name="usersplatform" property="uspl_check_ip" value="0" styleId="uspl_check_ip0">
<bean:message key="display.no" />
</html:radio>
</label>
偷懒的做法:
document.all("uspl_check_ip")[0].checked=true;
本文通过一个具体的示例介绍了如何使用HTML标签和Bean标签来创建表单元素,并展示了如何设置表单属性如name、property等。此外,还提供了一个简单的JavaScript代码片段用于设置表单中某个选项为默认选中状态。
170

被折叠的 条评论
为什么被折叠?



