title: Input field value's length
body: <p>Is there a way with jQuery to find out the width of text inserted in input field of type text? I need that info because I need to perform some work when certain with is achieved. 
  Also it would be very helpful for me to find the jQuery event that is occurring when user is entering one more character in input field which will make the first character of the whole value invisible?</p>
  
  <p>Please see example <a href="http://jsfiddle.net/J58ht/2/" rel="noreferrer">http://jsfiddle.net/J58ht/2/</a></p>
  
  <pre><code>&lt;input style="width: 35px;" type="text"&gt; &lt;span&gt;&lt;/span&gt;
  
  
      $('input').on('keyup',function(){
        var input = $(this);
        input.next("span").text(input.val().length + " chars");
  });
  </code></pre>
  
  <p>Try entering characters 123456 in the input field. When entering char 6 the first char 1 will be invisible.</p>
  
  <p>I need that event, when value overlaps input.</p>