Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<script language="javascript" type="text/javascript" >
        $(document).ready(function() {
            $('#home').on('click', function() {
                $('div.panel').animate({
                    'width': 'show'
                }, 1000, function() {
                    $('div.home').fadeIn(500);
                });
            });



            $('span.close').on('click', function() {
                $('div.home').fadeOut(500, function() {
                    $('div.panel').animate({
                        'width': 'hide'
                    }, 1000);
                });
            });
        });

    </script>



why i am getting this type error..please suggest me.
Posted
Comments
Karthik_Mahalingam 19-Feb-14 5:16am    
post mark up.
Siva Hyderabad 19-Feb-14 5:18am    
<ul>
<li>Home</li>
<li>About Me</li>
</ul>
<div class="panel">
<div class="home">
<span class="close">X</span>

</div>
</div>
Siva Hyderabad 19-Feb-14 5:20am    
example code from this link
http://jsfiddle.net/bWTwL/1113/
Karthik_Mahalingam 19-Feb-14 5:36am    
its working fine....
Siva Hyderabad 19-Feb-14 5:46am    
i copied code,but it shows an error..but i will check once again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900