<div id="modificarcliente" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">Modificar Cliente</h4>
            </div>
            <form name="modi_cliente" id="modi_cliente" method="post" >
            <div class="modal-body ">
                <div id="resultados_cliente_mod"></div> 
                <div class=" col-md-12" style="padding:0px;">
                    <input type="hidden"  name="tipo" id="tipo" class="form-control" autocomplete="off"  value="cedula"  required>
                    <div class="">
                        <label>Documento</label>
                        <input type="hidden" name="id" id="id" class="form-control" autocomplete="off"  value="">
                        <input type="text"  name="cc" id="cc" class="form-control input-sm" autocomplete="off"  value="" >
                    </div> <!-- /.form-group -->
                    <div class="">
                        <label>Nombre </label>
                        <input type="text"  name="nombre" id="nombre" class="form-control input-sm"  >
                    </div> <!-- /.form-group -->
             
                    <div class="">
                        <label>Dirección</label>
                        <input type="text"  name="direccion" id="direccion" class="form-control input-sm" autocomplete="off"  value="" >
                    </div> <!-- /.form-group -->
                    <div class="">
                        <label>Correo</label>
                        <input type="text"  name="correo" id="correo" class="form-control input-sm" autocomplete="off"  value="" >
                    </div> <!-- /.form-group -->
                    <div class=""  >
                        <label>Telefono</label>
                        <input type="text"  name="telefono" id="telefono" class="form-control input-sm" autocomplete="off"  value="">
                    </div> <!-- /.form-group -->
                    <input type="hidden"  name="barrio" id="barrio" class="form-control input-sm" autocomplete="off"  value="" autofocus="autofocus">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
                     <button type="submit" id="mod_cliente"  class="btn btn-success"><i class="icon-ok"></i> Modificar</button>
                </div>
            </div>
            
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>

<script type="text/javascript">
  $( "#modi_cliente" ).submit(function( event ) {
  $('#mod_cliente').attr("disabled", true);

 var parametros = $(this).serialize();
   $.ajax({
      type: "POST",
      url: "php_clientes/editar_cliente.php",
      data: parametros,
        beforeSend: function(objeto){
         $('#resultados_cliente_mod').html('<center><img src="./img/ajax-loader.gif"> CARGANDO...</center>');
        },
      success: function(datos){
      $("#resultados_cliente_mod").html(datos);
      $('#mod_cliente').attr("disabled", false);
      load(1);
      }
  });
  event.preventDefault();
})
</script>