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 target a specific element of a div in CSS?

    How to display scroll bar onto a html table

    How to avoid background image tile when browser window resizes

    How to id dom table so I can position it on page?

    How to change color icon in Materialize?

    How can I set the main theme-font dynamically, in WordPress

    How to create a CSS border surrounding an input box?

    Show range slider above Bootstrap progress bar (in navbar)

    How to show one Div when the user hovers over another on Tumblr?

    How to make pull right display properly?

    How to display text over responsive image by css

    how to make div fixed and ot move upon window resize

    How to click CSS with a space using Selenium Webdriver

    How to put a inside a

    without transpassing border height? [closed]

    How to keep footer at the bottom even with dynamic height website

    How to target and style specific elements using CSS

    Bootstrap 3 - How to change the hyperlink title text showing as tooltip using javascript/jquery?

    How do you align text of one item in nav?

    JQuery function to show element dependent on the value of hidden HTML input element

    how to enlarge an element and show text on clicking

    How to select two elements with “> span” in CSS?

    How to avoid an unknown height sticky footer to overlap content with CSS only?

    HTML CSS How to stop a table to put the content after it on a new line?

    How to deal with image references in CSS in a Rails 3.1 app

    How to align div to center of verital and horizontal

    Joomla 3 How to Style PHP Date Format

    how to call browser based css?

    How to position a background image without background-position property

    how to apply transition effect in expand/collapse inside gridview rows

    CSS and HTML: How to create an Expanding DIV On Click?