TR标签的隐藏与显示:block显示)和none隐藏)
<tr style=”display:none”>
<tr id="sample" style="display: <s:if test="sample == 1">block</s:if><s:else>none</s:else>"> <td> sample </td> </tr> <script type="text/javascript"> function changeTRselectedValue) { var tr1 = document.getElementById"sample"); if selectedValue == 0) { tr1.style.display = 'block'; } else { tr1.style.display = 'none'; } } </script>