Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2016, 08:12
infoturnosya
 
Fecha de Ingreso: diciembre-2015
Ubicación: rosario
Mensajes: 69
Antigüedad: 8 años, 5 meses
Puntos: 5
Respuesta: Problema al cargar table con ajax

Un div no se debe colocar dentro de una tabla, por lo tanto podrias hacer esto
Código Javascript:
Ver original
  1. $(function() {
  2.         $.ajax({
  3.             url: '../model/tipo_rif.php',
  4.             data: {funcion: 'cambiarStatus'},
  5.             type: 'POST',
  6.             success: function(data) {
  7.                 $("#example tbody").html(data);
  8.                 alert(data);
  9.             },
  10.             error: function(){
  11.                 alert('Error!');
  12.             }
  13.         });
  14.     });