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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM