once we click on login
, we want to hide the entire pop up box. I tried as below code.
<div class="ajaxlogin-window">
<div id="ajaxlogin-login-window">
<!-- other code -->
<button class="button" id="send2" id="close" onclick="window.ajaxlogin-login-window()" >
Login
</button>
also i tried onclick="parentNode.remove()"
but it hide only bottom half of pop up. tried lot of other things. so tried to use same code that close
button is using as below. but nothing worked for me.
close button :
<a href="javascript:void(0)" class="close">Login button</a>
script
document.observe("dom:loaded", function() {
var triggers = {
login: {
el : $$('.ajaxlogin-login'),
event : 'click',
window: $('ajaxlogin-login-window'),
size: {
maxWidth: 300
}
},