I have the following jQuery problem.
First I use height: auto; for my .container element so that a scrollbar is added if the .container content is bigger than the browsers window height. After 2 seconds the height should get the window height.
This is my current code in the $(document).ready(...) function:
$('.container').css('height', 'auto' ).delay(2000).css('height', $(window).height());
Currently the css('height', $(window).height()) doesn't get applied at all.
What is wrong with my jQuery chain?
css()function does not need it. It assumespx