Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/02/2015, 08:30
diurno10
(Desactivado)
 
Fecha de Ingreso: abril-2013
Ubicación: rosario
Mensajes: 248
Antigüedad: 11 años
Puntos: 17
Respuesta: Div recargado dinamicamente no funciona

Código Javascript:
Ver original
  1. $('img[id=elimina]').on("click",function(){
  2.     var id=$(this).attr("name");
  3.     var dataString = 'id='+id+'&a=ucc';
  4.     if(id.val()>0){
  5.         $.ajax({
  6.         type: "POST",
  7.         url: "retorna.php",
  8.         data: dataString,
  9.         cache: false,
  10.         success: function(html){
  11.             if(html){
  12.                 $("#grid").html(html);
  13.             }else{
  14.                 alert("VV");
  15.             }
  16.         }
  17.         });
  18.     }else{
  19.         return false;
  20.     }
  21. });