title: Get HTML text length by Angularjs
body: <p>I have declared text type in HTML and trying to get the length by Angular JS but everytime it's getting as '1'. Can anyone help me to get text length </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type="text" maxlength ="256" size ="100" class="chk-agreement" name="fav-foods" ng-required="true"&gt;
  </code></pre>
  
  <p><strong>AngularJs</strong></p>
  
  <pre><code>var texElem = $(document).find("input[type='text'].chk-agreement");
  var textElem = texElem.length;
  </code></pre>