jquery height animate() doesn't work
css, html, jquery, jquery-animate
Solution
`.height` is a function: use `$('ul').height()` to get the height like this
if ($('ul').height() == 0) {
}
Problem
I just created this: jsfiddle.net/MWzDe/, the JS: ``` $('button').click(function () { if ($('ul').height = 0) { $('ul').animate({'height':'100%'},'slow'); } else { $('ul').animate({'height': 0},'slow'); }}); ``` I need to slide the 'ul' tag Up/Down without 'really' disappearing it. What's wrong with the code? doesn't make it yet. thanks.