On 15/01/07, John Resig <[EMAIL PROTECTED]> wrote: > Hmm... I can't verify this. I popped open a test page and set the > .height() and it worked just fine. Perhaps a more complete example is > in order? > > --John > > On 1/15/07, agent2026 <[EMAIL PROTECTED]> wrote: > > > > All I"m trying to do is set the height of a div (jQuery 1.1), but no go. > > What am I missing? > > > > <script type="text/javascript"> > > <!-- > > $("#myDiv").height(600); > > --> > > </script> > > > > <div id="myDiv" style="border:1px solid #f00"></div> > > > > Preparing to feel dumb, > > Adam > > --
Looks like you are trying to set it before the DOM has loaded. Try: <script type="text/javascript"> <!-- $(function() { $("#myDiv").height(600); }); --> </script> <div id="myDiv" style="border:1px solid #f00"></div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/