I have a problem I have a function which fills the fields of a modal what I want is that when $('#estatus').val(d[7]);
is equal to 0 and 1 the select is enabled $('#estatus').val(d[7]);
and button update data and when it is 2 or 3 these same the select and the button are disabled (this is my code)
function agregaForm(datos){
d=datos.split('||');
$('#id').val(d[0]);
$('#año').val(d[1])
$('#s').val(d[2]);
$('#reporte').val(d[3]);
$('#edad').val(d[4]);
$('#nombre').val(d[5]);
$('#apellido').val(d[6]);
$('#estatus').val(d[7]);
$('#cu').val(d[8]);
$('#nuevacu').val(d[9]);
var c= $('#estatus').val(d[7]);
if ((c=="1")&&(c=="0")) {
$("#actualiza").disabled= false;
$("estatus").disabled = false;
}
else{
$("#actualiza").disabled= true;
$("#estatus").disabled = true;
}
}