Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/08/2012, 22:33
juancenter
 
Fecha de Ingreso: abril-2011
Mensajes: 121
Antigüedad: 13 años, 1 mes
Puntos: 1
Respuesta: Eliminar una fila determinada

Hola, yo tengo un archivo que para borrar usa algo como esto, no se si te sirva...

en todo caso me interesaría que si te ayudan me avises por que la forma como tienes el código es diferente a lo que yo estoy usando, chaoo..

Código Javascript:
Ver original
  1. $("img.delete").click(function(){
  2.         var row = $(this).parents('tr:first');
  3.         $.ajax({
  4.                 type: "POST",
  5.                 url: "delete.php",
  6.                 data: "id="+ id,
  7.                 success: function(){
  8.                         $(row).remove(); //Remove the row containing the image element
  9.                 }
  10.         });
  11.  
  12.  
  13.         return false;
  14. });