When I open a modal to update, I get all the information. But although my checkbox value is true, I cannot display it as checked on the screen. documentName and documentCode is text value, others are select option. enter image description here
$('#selectedAddDocName').val(data.techDocInfoList[0].technicalDocumentTypeId).trigger('change');
$('#selectedAddTeknikResim').val(data.techDocInfoList[0].technicalDocumentSubTypeId).trigger('change');
$('#selectedStokGrubu').val(data.techDocInfoList[0].technicalDocumentStockGroupId).trigger('change');
document.getElementById('dokumanKoduInputModal').value = data.techDocInfoList[0].documentCode;
document.getElementById('dokumanAdiInputModal').value = data.techDocInfoList[0].documentName;
Aucun commentaire:
Enregistrer un commentaire