Buenas a todos!!! una consulta, tengo una funcion de jquery que son los select dependiente que funciona bien, el inconveniete que tengo es que al modificar este formulario yo quiero que me traiga los select seleccionado y me deje cambiar por otros
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;
});
})
muchas gracias!!!