Bagaimana cara menampilkan tabel yg di hidden?
Saya ada 2 tabel seperti berikut:
<form method="POST">
<!--- tabel1 -->
<div id="form1">
<table>
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
<tr>
<td><input type="sumbit" name="btnUpdate" value="Update"></td>
<td> </td>
<td> </td>
</tr>
</table>
<?php
if($_POST['btnUpdate']){
echo "<script type='text/javascript'>
form1.style.display='none';
</script>";
echo "<script type='text/javascript'>
form2.style.display='';
</script>";
?>
<!--- tabel2 -->
</div>
<div id="form2" style="display:none">
<table>
<tr>
<td>d</td>
<td>e</td>
<td>f</td>
</tr>
<tr>
<td><input type="sumbit" name="btnSubmit" value="Submit"></td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</form>
Terima kasih...