Update height of div when height changes

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.

  1. $(function(){
  2. var height = $(".input-container").height()
  3. $("#SignHeight").text(height);
  4. if (height <= 72) {
  5. $("#SignHeight").text('20');
  6. }
  7. else {
  8. $("#SignHeight").text('25');
  9. }
  10. });
Any help with this would be greatly appreciated.