how to overwrite css height set by jquery/javascript?

Tags: javascript,jquery,css,height

Problem :

I have this:

 var setHeight = $(this).outerHeight(); 
 // returns e.g. 687

 $("#someElement").css({'height': $setHeight+"px !important" });
 // I want to override this jquery-set height

I'm not sure this is the right way... probably not, since it's not working.

Thanks for helping out!

Solution :

setHeight, not $setHeight. and the !important is unneeded.

    CSS Howto..

    How to make this css code (counters and ;before) cross browser compatible using jquery?

    How can I align a logo AND a heading to the centre of a page?

    how to increase the font-size without making it thicker

    how to put 2 css elements in the same row (one next to each other)?

    How to apply CSS to my JQuery Plugin

    How can I archive this responsive design?

    How to Display the response of the servlet paricullar portion of the web page?

    how to select a sibling element when hovering in CSS?

    How to document a webpage HTML and CSS using comments [closed]

    How to make a div take the remaining height without knowing the height?

    How should I set this caption over my image using CSS?

    How to apply an effect of white lines crossed to a div with css

    How to make text box scroll vertical in overflow css html?

    How to give a nested HTML table cell a transparent background?

    How do I get a div-based dropdown to gain a scrollbar instead of extend past the end of the screen using JavaScript and CSS? Struts are also involved

    How to design aggregations filter in css for week, month?

    How can I split this image into pieces so when I write a long text, it doesn't go outside of the div?

    How to design WPF in HTML, CSS and JavaScript

    How to adjust font awesome down arrow via css

    how does CSS determine which way to animate a transition?

    How to change default message “Please enter a value with a valid mimetype.” for HTML file input

    how to override unselectable=“on” with css in IE10?

    Show div on button click with multiple divs

    How to resize image according from screen resolution on html css

    jQuery Slideshow in Chrome, Firefox, and Safari

    How do I set up the Zurb Foundation icons?

    How to place a Show/Hide toggle button next to a header (not under the header)?

    How to change color of caret when drop down button is hovered

    css how to align a div to the top of a containing div

    how to make text transparent without changing to an image using css