Postingan lainnya
Buku Ini Koding!
Baru!
Buku ini akan jadi teman perjalanan kamu belajar sampai dapat kerjaan di dunia programming!
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
kenapa modal boostrap tidak muncul ( hanya berkedip)
bostrap modal muncul hanya sekedipan, modal saya buat dynamic. id dan modal-targetnya sudah cocok tp saat di klik jadinya seperti itu
5 Jawaban:
Jawaban Terpilih
modalnya
<?php
foreach ($datakondite_where as $editdtl){
?>
<!-- Modal EDIT-->
<div class="modal fade" id="modaledit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Edit Kondite</h4>
</div>
<div class="modal-body">
<form action="<?php echo base_url().'dp2k/c_kondite/update_kondite/'.$editdtl['kondite_id']; ?>" method="post">
<div class="row">
<div class="col-md-6" style="display:none;"><input type="text" name="idkondite"
value="<?php echo $editdtl['kondite_id'] ?>"></div>
</div>
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">NIK</label></div>
<div class="col-md-6"><label>: <?php echo $editdtl['karyawan_nik'] ?></label></div>
</div>
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">Nama</label></div>
<div class="col-md-6"><label >: <?php echo $editdtl['karyawan_nama'] ?></label></div>
</div>
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">Unit Kerja</label></div>
<div class="col-md-6"><label >: <?php echo $editdtl['unit_nama'] ?></label></div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">Tanggal</label></div>
<div class="col-md-6">
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" readonly class="form-control pull-right datepicker" onclick="abc()" value="<?php echo $editdtl['tanggal_kondite'] ?>">
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">No Surat</label></div>
<div class="col-md-6"><label> <input type="text" name="nosurat" class="form-control" size="35" value="<?php echo $editdtl['surat'] ?>"></label></div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">Pelanggaran</label></div>
<div class="col-md-6"><label ></label></div><br>
</div>
<div class="form-group">
<textarea class="form-control" rows="3" name="pelanggaran"><?php echo $editdtl['pelanggaran_prestasi'] ?>
</textarea>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">Perihal</label></div>
<div class="col-md-6"><label></label></div>
</div>
<div class="form-group">
<textarea class="form-control" name="perihal" rows="3" ><?php echo $editdtl['perihal'] ?></textarea>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-4"> <label style="padding-left:10px;">Sanksi</label></div>
<div class="col-md-6"><label ></label></div>
</div>
<div class="form-group">
<textarea class="form-control" name="sanksiprestasi" rows="3" ><?php echo $editdtl['sanksi_reward'] ?></textarea>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">Batal</button>
<button class="btn btn-primary">Simpan</button></a>
</div>
</form>
</div>
</div>
</div>
</div>
<?php } ?>
<!-- Modal edit-->
button modalnya
<td><a href="<?php echo site_url('dp2k/c_kondite/get_id_kondite/'.$dtl['kondite_id']); ?>"><button class="btn btn-block btn-info btn-xs"data-toggle="modal" data-id="<?php echo $dtl['kondite_id'] ?>" data-target="#modaledit" ><i class="fa fa-pencil-square-o" aria-hidden="true" data-toggle="tooltip" title="harap di cawang"></i></button></a></td>
@welldone
udah bisa blm.. sya juga masalahnya sama..
solusinya gimana gan, soalya saya juga kek gitu masalahnya? apa ada yang korup?
saya juga mengalami hal sama. ketika klik button tak muncul apapun. please advice ya