"."/> ".">
Home >Web Front-end >Front-end Q&A >How to hide tr in html
htmlHow to hide tr: First create an HTML sample file; then define the rows in the HTML table through the tr tag; finally hide it through "23d1eb367280859b9f3d70033d9b412f" Can.
<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 changeTR(selectedValue) { var tr1 = document.getElementById("sample"); if (selectedValue == 0) { tr1.style.display = 'block'; } else { tr1.style.display = 'none'; } } </script>[Recommended learning:
HTML video tutorial】
The above is the detailed content of How to hide tr in html. For more information, please follow other related articles on the PHP Chinese website!