Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/10/2017, 11:36
stevens82
 
Fecha de Ingreso: octubre-2011
Mensajes: 132
Antigüedad: 12 años, 6 meses
Puntos: 4
Respuesta: actulizar item de varios combobox con ajax

console.lo me sale;
undefined
1404
undefined
1405

Código Javascript:
Ver original
  1. $(".estado_oym").change(function() {
  2.         $(".estados_oym").each(function() {
  3.             // var idoym = $(this).children().attr("idoym");
  4.             //  var idoym = $(this).children().attr("idoym");
  5.             var estadooym = $(this).children().val();
  6.             var codigooym = $(this).attr("codigooym");
  7.             // var idoym = $(this).data('idoy');
  8.             var idoym = $(this).attr("idoym");
  9.             console.log(idoym);
  10.             $.ajax({
  11.                 type: "POST",
  12.                 url: _root_ + 'validacion/detalle/' + codigooym,
  13.                 data: {
  14.                     codigo: codigooym,
  15.                     id: idoym,
  16.                     estado_oym: estadooym
  17.                 },
  18.                 success: function(msg) {
  19.  
  20.                 }
  21.             });
  22.         });
  23.     });