[jQuery] Re: Quick question

2008-07-10 Thread Overshee
apper").animate({width: "1024px"}, 1000); >         } >     }); > > And finally, a slightly more "jQuery-ish" way to check the width: > >     $(function(){ >         if( $('body').width() > 1024 ){ >             $("#wrapper").ani

[jQuery] Quick question

2008-07-10 Thread Overshee
I want an id on a page I'm developing to get bigger if a certain condition is met, however, I can't get the code to work... can anybody fix this up for me? $(document).ready(function(){ if(document.body.offsetWidth > 1024 ){ $("#wrapper").css(function() { $(this).animate ({width: "1024px"}, 1000)