title: Change Font Size dynamically based on Character count
body: <p>I'm trying to adjust title sizes depending on character length. (wordpress)</p>
  
  <p>This is what I have so far. It doesn't return any error but it doesn't work.</p>
  
  <pre><code>jQuery(function ($) {
      $(window).load(function () {
          var textLength = $('.autotitle').val().length;
          if (textLength &lt; 20) {
              // Do noting 
          } else if (textLength &gt; 20) {
              $('.autotitle').css('font-size', '16px');
          }
      });
  });
  </code></pre>