Created
May 21, 2015 11:45
-
-
Save msanroman/9f35bc6d9ba006f816e2 to your computer and use it in GitHub Desktop.
Vincular click con mostrar un popup... dentro de otro popup
This file contains hidden or 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
$('.publicar-curso').click(function(e){ | |
e.preventDefault(); | |
$('#popup').load('popups.html #publicar-curso', function() { | |
$('#publicar-curso').show(); | |
$('.close').click(function(e){ | |
$('.masc:visible').hide(); | |
}); | |
/* | |
Aqui ya hemos cargado el popup #publicar-curso, ahora queremos vincular el click del botón que tiene dentro | |
con mostrar un nuevo popup: | |
*/ | |
$('.show-registro-curso').click(function(e) { | |
e.preventDefault(); | |
/* | |
Cargamos el popup que queremos, y una vez ha cargado, lo mostramos y vinculamos el click para ese .close que este nuevo popup contiene | |
*/ | |
$('#popup').load('popups.html #registro-curso', function() { | |
$('#registro-curso').show(); | |
$('.close').click(function(e) { | |
$('.masc:visible').hide(); | |
}) | |
}) | |
}) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment