Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/08/2014, 09:48
bathorz
 
Fecha de Ingreso: agosto-2013
Mensajes: 150
Antigüedad: 10 años, 8 meses
Puntos: 29
Respuesta: Problema checkbox repite mensaje box

Creo que sobra código.
Prueba
Código Javascript:
Ver original
  1. $(document).ready(function() {
  2.  
  3.         $('input[name=baja]').on("click", function() {
  4.           var id = $(this).attr('id');
  5.           var box = confirm("¿Está seguro que desea eliminar el cliente?");
  6.           if (box == true) {
  7.             $.ajax({
  8.               type: 'POST',
  9.               url: 'ajax_chk_cliente.php',
  10.               data: 'id= ' + id,
  11.               success: function() {
  12.                 window.location.href = "ver_cliente.php";
  13.               }
  14.             });
  15.           } else {
  16.             $(this).prop('checked', false);
  17.           }
  18.         });
  19.  
  20.       });
y elimina los onclick.