I'm trying to get the height prop of a div in jQuery. That's really simple :
$("#mydiv").css("height");
That's right. But if the div have a min-height superior of the height, this code will return the min-height. How can I force it to give me the height ?
Example :
$("#result").html($("#mydiv").css("height"));
#mydiv{
width : 100px;
height : 10px;
min-height : 80px;
background : red;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="mydiv"></div>
<div id="result"></div>
In this example, how can I get "10px" ?