Last active
January 5, 2017 17:48
-
-
Save pokisin/42054ed8c7f6505525482ab8bec9452e to your computer and use it in GitHub Desktop.
Eventos con Jquery - Como crear un listener y como lanzar respuesta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Crea el evento para escuchar | |
$( "#id_ejemplo" ).on( "valido", function( event, mnsg ) { | |
console.log(mnsg); | |
}); | |
En otro archivo ó en el mismo despachas el evento | |
$( "#id_ejemplo" ).trigger( "valido", "ya termino de subir el archivo" ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment