text input truncated in bootstrap modal |
I am using modal to make input text for update a field in CodeIgniter 4, but the text truncated into a smaller(narrower) text. The code in modal (inside sertifikat.php) is :
<div class="row"> <div class = "mb-3 row"> <div class = "m-1 row"> <label for="kode_ta">Kode TA</label> <div class = "col-sm-3"> <input type="text" class="form-control" name="kode_ta" id="kode_ta" value=<?= $v->kode_ta; ?>> </div> </div> <div class="mb-3"> <label for="sertifikat">Sertifikat</label><?= $v->sertifikat; ?> <input type="text" name="sertifikat" id="sertifikat" class="form-control" value=<?= $v->sertifikat; ?> required> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Tutup</button> <button type="submit" class="btn btn-primary">Simpan</button> </div> </div> </div> I have omegle.2yu.co changed to use object model (protected $returnType = 'object' ![]() the value should be "Certified International personel assessor (cipa) oleh pt. quantum hrm international tahun 2020", but it show only "Certified" in bootstrap modal text field omeglz echat . When I run the program
This may help you to fix your problem, review the html modal code.
CRUD App Using CodeIgniter 4, Bootstrap 5, jQuery - Ajax What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Try adding double quotes in the value.
Like: Code: <input type="text" name="sertifikat" id="sertifikat" class="form-control" value="<?= $sertifikat; ?>" required> |
Welcome Guest, Not a member yet? Register Sign In |