There are many issues with your code:
menuHolder is not a valid html tag.
height() is a function call which I cannot imagine should ever return the string "height".
- It seems like you are not running this after the document is fully loaded?
Suppose your html looks like this:
<div id="menuHolder">This is the menu holder</div>
Note that the tag in question must have id attribute set to "menuHolder". If you have more than one menuHolder, then you should use the class attribute instead.
Then your js should be:
$(function(){
$('#menuHolder').css("height", $(window).height());
});
http://jsfiddle.net/93hFW/
or
$(function(){
$('#menuHolder').height($(window).height());
});
http://jsfiddle.net/93hFW/1/
If you have are using the class attribute instead as suggested above, then you should use a . (dot) instead of the # to prefix the jQuery selector.
heightreturn in.css(height(), winHeight);? Have you actually read the.cssdocumentation (I bet this would help you the most)? Also, as @Xander points out, in HTML there is nomenuHolderelement. Maybe you meant to use a class, or maybe you have to read some more jQuery tutorials first. Btw there is nothing like a "jQuery variable". jQuery is a library and JavaScript is the language. If any, it's a JavaScript variable, but since we know that it's about JavaScript, it's just a variable ;)menuHolderis an html element?!?! ;)