Advertisement
GWibisono

form dasar

Apr 13th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.75 KB | None | 0 0
  1. <form action="#" method="post" name="check" onsubmit="Tampil()">
  2. <input type="checkbox" name="semua" value="semua" onClick="Check(document.check.kolom)"> <b id=message>Centang Semua</b><br />
  3. <input type="checkbox" name="kolom[]" value="tabel_a.id_a" onclick="check2()">id_a&nbsp;|&nbsp;
  4. <input type="checkbox" name="kolom[]" value="nama" onclick="check2()">nama&nbsp;|&nbsp;
  5. <input type="checkbox" name="kolom[]" value="jenkel" onclick="check2()">jenkel&nbsp;|&nbsp;
  6. <input type="checkbox" name="kolom[]" value="alamat" onclick="check2()">alamat&nbsp;|&nbsp;
  7. <input type="checkbox" name="kolom[]" value="pekerjaan" onclick="check2()">pekerjaan&nbsp;|&nbsp;
  8. <input type="checkbox" name="kolom[]" value="hobby" onclick="check2()">hobby&nbsp;|&nbsp;
  9. <input type="checkbox" name="kolom[]" value="user" onclick="check2()">user&nbsp;|&nbsp;
  10. <input type="checkbox" name="kolom[]" value="tgl" onclick="check2()">tgl&nbsp;|&nbsp;
  11. <input type="checkbox" name="kolom[]" value="id_b" onclick="check2()">id_b&nbsp;|&nbsp;
  12. <input type="checkbox" name="kolom[]" value="nama_brg" onclick="check2()">nama_brg&nbsp;|&nbsp;
  13. <input type="checkbox" name="kolom[]" value="type" onclick="check2()">type&nbsp;|&nbsp;
  14. <input type="checkbox" name="kolom[]" value="jumlah" onclick="check2()">jumlah&nbsp;|&nbsp;<br /><br />
  15.  
  16. <script type="text/javascript">
  17.  
  18.     function Tampil()
  19.     {
  20.         var chklist=document.getElementsByClassName("class");
  21.         document.check.kolom.value=chklist;
  22.     }
  23. </script>
  24.  
  25. Tanggal :
  26. <input type="text" name="datepicker" size="10" id="datepicker" onkeypress="return handleEnter(this, event)" />
  27. sampai
  28. <input type="text" name="datepicker" size="10" id="datepicker" onkeypress="return handleEnter(this, event)" />&nbsp;
  29. <input type="submit" name="submit" value="Tampil"></form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement