jQuery innerHeight()
jQuery innerHeight() method returns the inner height of the selected element. Padding is included in this method but not the border and margin. Syntax: $(selector).innerHeight() Example1: <!DOCTYPE html> <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script> $(document).ready(function(){ $(“button”).click(function(){ alert(“Inner height of the div is: ” + $(“div”).innerHeight()); }); }); </script> </head> <body> <div style=”height:100px;width:500px;padding:5px;margin:3px;border:1px solid blue;background-color:lightpink;”></div><br> <button>Height</button> </body> … Read more