js隐藏表格的一行数据

1.方法

document.getElementById('customerAccount_tr').style.display="";//缴纳人名称显示

document.getElementById('customerAccount_tr').style.display="none";//缴纳人名称显示    

document.getElementById('customerAccount_tr').style.display="block";//缴纳人名称显示   (这种方法有时候会影响格式) 
 

 

2.HTML

<tr id="customerAccount_tr">
                    <th>缴纳人名称:</th>
                    <td><input  type="text" id ="customerAccount" name="customerAccount"  style="width:100px;"
                        class="easyui-textbox"/></td>
                </tr>

 

posted @ 2017-02-08 18:31  Mr_伍先生  阅读(4203)  评论(0编辑  收藏  举报