Hello good morning fellow of the programming somebody knows how to do so that when a person gives him in a select the option if it does not apply it is deactivated function loadQuestions () {
$.post('php/cargarPreguntas.php', {}, function(datos, textStatus, xhr) {
var tmpIdx = 0;
var tds = '';
$.each(datos, function(indice, val) {
if (tmpIdx !== val.idCat){
if (tmpIdx !== 0){
tds += '</div>'
}
tmpIdx = val.idCat;
tds += '<h3 title="' + val.catDesLar + '">' + val.catDesCor + '</h3>';
tds += '<div>';
}
tds += '</br>';
tds += '<div class="row">';
tds += '<div class="col-sm-2">';
tds += '<h8>' + val.idCat + '.' + val.idPre + '</h8>';
tds += '</div>';
tds += '</br>';
tds += '<div class="col-sm-6">';
tds += '<h9 title="' + val.preDescLar + '">' + val.preDesCor + '</h9>';
tds += '</div>';
tds += '</br>';
tds += '</br>';
tds += '<div class="col-sm-2">';
tds += '<div id="javier">';
tds += '<h6 style="color:#0B93A8;"> CUMPLE </h6>';
tds += "<select class='txtFormulario_Pregunta' id='txtFormulario_Pregunta_" + val.idPre + "' rel='" + val.idPre + "'>";
tds += "<option disabled selected>Seleccione</option>";
tds += "<option value='SI'>SI</option>";
tds += "<option value='NO'>NO</option>";
tds += "<option value='NA'>N.A</option>";
tds += "</select>";