<head>
    <title>SELECT BOX DINAMIS DENGAN AJAX &amp;amp; PHP</title>
    <link href="st01.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="component/subkategori1/ajax.js"></script> 
  </head>
 <h2>KABUPATEN/KOTA</h2>
      <select name="kabupaten" id="kabupaten" onChange="getkecamatan(this.value)">
               <option value="0">--Semua Kategori--</option>
         <?php
include_once "../../config/conn.php"; 
                        $query2  = "SELECT * FROM jenis_transaksi ORDER BY id_jenis";
                        $tampil2 = mysqli_query($conn, $query2);
                        while ($w = mysqli_fetch_array($tampil2)) {
                            echo "<option value=\"$w[id_jenis]\">$w[nama_jenis]</option>";
                        }
                        ?>
        </select>
     </div>
  
  
<div class="right">
<h2>KECAMATAN</h2>
<div id="dvkecamatan">
        <select name="kecamatan" id="kecamatan">
           <option value="0">--Kecamatan--</option>
        </select>
 </div>