Update height of div when height changes
Hi, I currently have a div which i am getting the height off. Current height is 72 pixels when the height is equal to or the same as 72 i display "20" when the div goes over 72 pixels i want to display "25". I have done this so far but want the height to automatically change to 25 when the div goes bigger than 72.
- $(function(){
- var height = $(".input-container").height()
- $("#SignHeight").text(height);
- if (height <= 72) {
- $("#SignHeight").text('20');
- }
- else {
- $("#SignHeight").text('25');
- }
- });
Any help with this would be greatly appreciated.