este es el codigo.
Código HTML:
$(document).ready(function(){
$("#txtmar").change(function(){
$.post("cargar_select2.php",{ id:$(this).val() },function(data){$("#txtmod").html(data);})
$("#txtmac").attr('disabled','disabled');
// document.getElementById("ideq"). value = "";
});
$("#txmod").change(function(){
$.post("cargar_select2.php",{ id:$(this).val(), cb:'2' },function(data){$("#txtmac").html(data);})
$("#txtmac").removeAttr('disabled','disabled');
});
$("#txtmac").change(function(){
var value = $('#txtmac option:selected').val();
document.getElementById("ideq"). value = value;
});
})


