Jquery .hide problem
        Posted  
        
            by Sergio
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sergio
        
        
        
        Published on 2010-04-14T12:21:34Z
        Indexed on 
            2010/04/14
            12:23 UTC
        
        
        Read the original article
        Hit count: 439
        
I'm using jquery to show animated MSN like window at the bottom of the page.
Jquery code:
$(document).ready(function() {
$(" .inner").stop().animate({height:'142px'},{queue:false, duration:600});
$(' .close').click(function(event) {
$(' .inner').hide();
});
$(' .inner').click(function() {
location.replace("somepage.php");
});
});
The CSS:
.close {height:14px; z-index:100; position: absolute; margin-left:174px; margin-top:12px;    border:1px solid #F00;}
.inner {position:absolute;bottom:0;width:201px;height:117px;right: 0; margin-right:10px; float:left; z-index:-1; display:block; cursor:pointer;}
The problem that I have with this code is that the close button (showing at the right top corner of .inner DIV) can't fire Jquery .hide function.
Why?
© Stack Overflow or respective owner