<s:select>标签自动生成<tr><td>的问题~
------------功能:-------------------------
?
?? 二级下拉菜单联动の实现
?
?
------------源码:-------------------------
?
function:
//选择大类触发的事件function selectSmallCate() { var id = $("#bigCateSelect").val(); //根据大类的id获取小类列表 $.ajax({ type:'post', url:"getSmallCate", data:"bigCateId=" + id, cache:false, timeout:9000, success:function(result){ $("#ajaxdiv").html(result); } });}
?
result返回页面:
?
<s:select list="smallCateList" listKey="cateId" listValue="cateName" name="smallCate" headerKey="-1" headerValue="--请选择--" theme="simple" ></s:select>
?
?
?
------------问题:-------------------------
?
返回结果自动在标签外添加<tr><td class="tdlabel">........</td></tr>
?
?
------------原因:-------------------------
?
Struts标签的默认样式
?
?
------------解决办法:-------------------------
?
只要在<s:select>标签中加上theme="simple"就解决啦~