jQuery Tutorial


jQuery Example


jQuery References


jQuery CSS height() Method Reference


  jQuery CSS method References


Uses

jQuery height() method set set and return the height of selected elements.


Syntax

$(selector).height(value)  

jQuery CSS height() method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    $("p").height("100px");
  });
});
<script>
Online Try This Code Your Self....   »

jQuery heigh() method 2nd Syntax

$(selector).height()

jQuery height() method 2nd Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    alert($("p").height());
  });
});
<script>
Online Try This Code Your Self....   »

  jQuery CSS method References