Advertisement
SuperBag

Latian.php

Feb 7th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.39 KB | None | 0 0
  1.  <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Untitled Document</title>
  6. <script src="../../tugas_akhir(sementara)/jquery.min.js"></script>
  7. <script>
  8. $(document).ready(function() {
  9.     $("#tambah").click(function() {
  10.         var baris="<tr>"+
  11.           "<td><select><option>- Pilih Akun -</option></select></td>"+
  12.           "<td><input type='text'></td>"+
  13.           "<td><input type='text'></td>"+
  14.           "<td><input type='text'></td>"+
  15.           "<td><button id='tambah'>+</button></td>"+
  16.           "</tr>";
  17.         $("#tabel").append(baris);
  18.     });
  19. });
  20. </script>
  21. </head>
  22.  
  23. <body>
  24.   <div id="header"></div>
  25.   <div id="content">
  26.     <form id="pilih-transaksi">
  27.       <h1>Transaksi</h1>
  28.       <a>Transaksi Kas</a>&nbsp;<a>Transaksi Umum</a>
  29.     </form>
  30.     <form id="form-kas" method="post">
  31.       <table id="tabel" border="1">
  32.         <tr>
  33.           <th>No. Akun</th>
  34.           <th>Nama Akun</th>
  35.           <th>Debit</th>
  36.           <th>Kredit</th>
  37.           <th>&nbsp;</th>
  38.         </tr>
  39.         <tr>
  40.           <td><select>
  41.           <option>- Pilih Akun -</option>
  42.           </select></td>
  43.           <td><input type="text"></td>
  44.           <td><input type="text"></td>
  45.           <td><input type="text"></td>
  46.           <td><button id="tambah">+</button></td>
  47.         </tr>    
  48.       </table>
  49.     </form>
  50.     <form id="form-umum" method="post"></form>
  51.   </div>
  52.   <div id="footer"></div>
  53. </body>
  54. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement