0

Hi
I need help here, please tellme why it snt working correctly
Urgent ;
THankss very much

$('#windowhead').click(function(){
    /*$("#fullwindow").css({
    "height":20+"px"
    });*/
    $("#fullwindow").slideToggle('css'({
    "height":20+"px"
    }));
});
2
Contributors
4
Replies
34
Views
2 Years
Discussion Span
Last Post by phoenix254
1

You can't use .slideToggle() for CSS properties. You'll need .animate() to do so.
Something like this:

$('#windowhead').click(function(){
    $('#fullwindow').animate({
        height: "20px"
    }, 300 ); // duration
});

http://api.jquery.com/animate/

Edited by gentlemedia

0

but i want like toggle. here i uploaded my code
when i click on #windowhead then #fullwindow should have 20px height and when riclick then it should return in normal/orinal size.
here is my code uploaded http://codepen.io/anon/pen/jPqBXr

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.