javascript - How to show a specific table from an HTML file with several tables when the html is called? -
i have problem. have html file 5 tables in it. don't know how call specific table when need it. example, need second table 5 tables in html file when call html file. in advance..
when need show/hide table can use below code
<script type="text/javascript"> <!-- function show(id) { if (document.getelementbyid(id).style.display == 'none') { document.getelementbyid(id).style.display = ''; } } //--> <!-- function hide(id) { document.getelementbyid(id).style.display = 'none'; } //--> </script>
by default can assign id , have values below
<table id="tbla" style="display: none" cols="1" cellpadding="2">
Comments
Post a Comment