JavaScript控制内容的隐藏和显示

    技术2026-01-10  1

    在Jsp页面中包含以下一段类似代码:

     

    <td align="left" colspan="3" rowspan="3">             <nested:radio property="eventType" value="显示" 

                       οnclick="$_$('#selectUser').css ({display:'  '});"></nested:radio>显示

                 <nested:radio property="eventType" value="隐藏" 

                       οnclick="$_$('#selectUser').css ({display:'  '}):"></nested:radio>隐藏

    </td>

     

     

    以下这段代码就是要控制显示的内容

    <tr  id="selectUser" style="display:none;">

               。。。。。。。。。。。

    </tr>

     

     或

    <td height="35" id="selectUser" style="display:none;">

               。。。。。。。。。。。

    </td>

     

    当然也可根据具体情况将控制代码写在 function() 中

    最新回复(0)