Skip to content

Instantly share code, notes, and snippets.

@ederrafo
Last active July 4, 2019 19:21
Show Gist options
  • Save ederrafo/02e403ce349f9db78be0d9912a6c7458 to your computer and use it in GitHub Desktop.
Save ederrafo/02e403ce349f9db78be0d9912a6c7458 to your computer and use it in GitHub Desktop.
jquery various javascript
// event modal bootstrap 3
$('#crear-gestion-de-cobranza').on('show.bs.modal', function (event) {
event.preventDefault;
console.log('Logica para crear una gestion de cobranza')
// AccountsPrepare()
// AccountsPaint();
});
// send FILE throug ajax
$.ajax({
type : 'POST',
url : $form.attr( "action" ),
data : new FormData(this),
cache : false,
contentType : false,
processData : false
}).done(function(data){
}).fail(function(data){
}).always(function(jqXHR){
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment