Hello classmates, someone could help me how to show a SELECT QUESTION inside each one I want to show the data
this post I have the data of the observations
$.post('php/formularioactualiza/MostrarResultPre.php', datos, function(observaciones) {
//alert(observaciones);
var obj = JSON.parse(observaciones);
//alert(obj);
$(obj).each(function(index,value){console.log(value.observacion)})
});
Here is where I have my observation textarea
$(document).delegate('.txtFormulario_Pregunta', 'change', function(event) {
var valor = $(this).val();
var idPre = $(this).attr('id').replace('txtFormulario_Pregunta_', '');
validarcategorias(idPre);
if (valor == 'NO') {
$('#txtFormulario_Pregunta_Observacion_' + idPre).remove();
var tds = '<textarea class="form-control observacion" rows="6" placeholder="OBSERVACIÓN:" id="txtFormulario_Pregunta_Observacion_' + idPre + '"></textarea>';
//$('#ui-id-3').css('background-color', '#01DF01');
$( "div.col-sm-6>h9#h9_"+idPre ).after(tds);
$('#btnagregartecins_inc_' + idPre).show();
$('#txtFormulario_Pregunta_Observacion_' + idPre).show();
$('#txt_tec_ins_inc_' + idPre).show();
$('#btnagregartecinc' + idPre).show();
$('#txtFormulario_Conformidad').val('NO');
} else if (valor == 'SI') {
//$('#ui-id-3').css('background-color', '#01DF01');
$('#btnagregartecins_inc_' + idPre).hide();
$('#txtFormulario_Pregunta_Observacion_' + idPre).remove();
$('#txt_tec_ins_inc_' + idPre).hide();
$('#btnagregartecinc' + idPre).hide();
} else if (valor === 'NA') {
//$('#ui-id-3').css('background-color', '#01DF01');
$('#btnagregartecins_inc_' + idPre).hide();
$('#txtFormulario_Pregunta_Observacion_' + idPre).remove();
$('#txt_tec_ins_inc_' + idPre).hide();
$('#btnagregartecinc' + idPre).hide();
}
});