Good afternoon everyone. Guys, I have the following difficulty: I have the following screen:
Clickingonthehighlightedbutton(Edit)opensthismodalwindow,whereitpassestherequestID,andthedateasshownintheimage:
MydifficultyistoreusetheinformationIhavepassed.Asyoucansee,IwasabletopassthisinformationandretrieveitviajavaScript
,butwhenIsubmitmyform,ortrytocapturethevalueofthefieldbytheid,itreturnsnull
.
Ipassedtheinformationasfollows:
Buttonthatcallsmodal,andIpasstheinformationthroughtheattributedata-id='$xid|$dataexibir'
<atype='button'href='#editar'class='btnbtn-primaryespacos'data-toggle='modal'data-target='.editar'data-id='$xid|$dataexibir'id='btnEditar'>
Fieldthatreceivestheinformationinthemodalwindow:
<inputtype="text" class="form-control" name="meuid" id="meuid" disabled="true">
javascript function that I used to pass the data:
$(document).on("click", "#btnEditar", function () {
var info = $(this).attr('data-id');
var str = info.split('|');
var meuid = str[0];
var minhadata = str[1];
$(".modal-body #meuid").val(meuid);
$(".modal-body #minhadata").val(minhadata);
});
As you can see in the second image, I try to retrieve this id to make a select and fill that table below with the information already contained for that id, and I can not, nor can I retrieve or submit through the form. I am waiting for some help, and thank you for your attention. Thanks!