现在的位置: 首页 > 综合 > 正文

的区别

2014年11月02日 ⁄ 综合 ⁄ 共 821字 ⁄ 字号 评论关闭

1、  jsp页面有多项选择时,<html:radio><html:option>的区别,特别是在读取时:

<html:radioproperty="psActor.gender"value="1"></html:radio>

<html:radioproperty="psActor.gender"value="2"></html:radio>

 

<html:select property="psActor.minorityType"style="width:95%">

<html:optionvalue="">请选择...</html:option>                  

<html:optionvalue="1">藏族</html:option>

</html:select>

判断时

Radio的选中document.all("psActor.gender")[0].checked以true和false来判断;

Option的选中document.getElementById('psActor.minorityType').value是直接取value的值;

读取时

<html:radioproperty="psActor.gender"value="1"disabled="true"></html:radio>

<html:radioproperty="psActor.gender"value="2"
disabled="true"></html:radio>

 

<logic:equalname="psActorForm"property="psActor.minorityType"value="1">藏族</logic:equal>

<logic:equalname="psActorForm"property="psActor.minorityType"value="2">维吾尔族</logic:equal>

抱歉!评论已关闭.