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="100px;"
                        class="easyui-textbox"/></td>
                </tr>
原文地址:https://www.cnblogs.com/mr-wuxiansheng/p/6379453.html