vendredi 9 avril 2021

How can I get the value that comes true with the checkbox checked in the "update" modal popup?

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