  <!-- Modal Wakil -->
  <div class="modal fade" id="WakilModal" tabindex="-1" role="dialog" aria-labelledby="WakilModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="WakilModalTitle">Daftar Wakil</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
         
          <div class="form-group row">
            <div class="col-4">
              <label>No Wakil</label>
            </div>
            <div class="col-4">
              <input type="text" class="form-control" id="nowakil" name="nowakil" readonly/>
              <span name="errornowakil" style="color:red;"></span>
            </div>
          </div>

          <input type="hidden" id="nopelangganwakil"/>
          <input type="hidden" id="norujukanwakil"/>

          <div class="form-group row">
            <div class="col-4">
              <label>No KP</label>
            </div>
            <div class="col-7">
              <input type="text" class="form-control" id="nokpwakil" name="nokpwakil" readonly/>
              <span name="errornokpwakil" style="color:red;"></span>
            </div>
          </div>

          <div class="form-group row">
            <div class="col-4">
              <label>Nama</label>
            </div>
            <div class="col-8">
              <input type="text" class="form-control" id="namawakil" name="namawakil"/>
              <span name="errornamawakil" style="color:red;"></span>
            </div>
          </div>
            

          <div class="form-group row">
            <div class="col-4">
              <label>Alamat</label>
              </div>
            <div class="col-8">
              <input type="text" class="form-control" id="alamatwakil" name="alamatwakil"/>
              <span name="erroralamatwakil" style="color:red;"></span>
            </div>
          </div>

          <div class="form-group row">
            <div class="col-4">
              <label>No Tel</label>
            </div>
            <div class="col-6">
              <input type="text" class="form-control" id="notelwakil" name="notelwakil"/>
              <span name="errornotelwakil" style="color:red;"></span>
            </div>
          </div>

          <div class="form-group row">
            <div class="col-4">
              <label>Nota</label>
            </div>
            <div class="col-8">
              <input type="text" class="form-control" name="notawakil" id="notawakil"/>
              <span name="errornotawakil" style="color:red;"></span>
            </div>
          </div>

          <div class="form-group row">
            <div class="col-4">
              <label>Hubungan</label>
            </div>
            <div class="col-8">
             <select class="form-control" name="slthubungan" id="slthubungan">
               <option value="Ibu">Ibu</option>
               <option value="Bapa">Bapa</option>
               <option value="Suami">Suami</option>
               <option value="Isteri">Isteri</option>
               <option value="Adik-Beradik">Adik-Beradik</option>
               <option value="Emak-Saudara">Emak-Saudara</option>
               <option value="Bapa-Saudara">Bapa-Saudara</option>
               <option value="Sepupu">Sepupu</option>
               <option value="Kawan">Kawan</option>
               <option value="Datuk">Datuk</option>
               <option value="Nenek">Nenek</option>
               <option value="Cucu">Cucu</option>
               <option value="Abang">Abang</option>
               <option value="Kakak">Kakak</option>
              <option value="Anak">Anak</option>
             </select>
            </div>
          </div>

          </div>

        <div class="modal-footer">
            <button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
            <button type="button" class="btn btn-success btn-lg" onclick="daftarwakil();">Terima</button>
        </div>
      </div>
    </div>
  </div>
