title: Explain the jQuery code: $('.maxlength').after("<span></span>").next().hide().end().keypress
body: <p>Here is my code.. but I am unable to understand this code.</p>
  
  <pre><code>$('.maxlength')
  
      .after("&lt;span&gt;&lt;/span&gt;")
  
      .next()
  
      .hide()
  
      .end()
  
      .keypress(function(e) {
  
          var current = $(this).val().length;
  
          if (current &gt;= 130) {
  
              if (e.which != 0 &amp;&amp; e.which != 8) {
  
                  e.preventDefault();
  
              }
  
          }
  
          $(this).next().show().text(130 - current);
  
      });
  </code></pre>