title: Div width and height increase along with textarea content
body: <p>Div increases with the text entered. Fine. But when I press enter height should increase according to the text size and also width shouldn't increase till the text reaches to the above width. Please help</p>
  
  <p><a href="http://jsfiddle.net/shabbirrangwala/NkRYY/8/" rel="nofollow">http://jsfiddle.net/shabbirrangwala/NkRYY/8/</a></p>
  
  <pre><code>$('textarea').keyup(function(e) {
      if ((e.keyCode || e.which) == 13) {
          $('.EDetailInset').css('height', ((this.value.length + 1) * 3) + 'px');
      }
      else {
          $('.EDetailInset').css('width', ((this.value.length + 1) * 11) + 'px');
      }
  });​ 
  </code></pre>