title: Blazor: counting characters in a textarea in Blazor (not .js)
body: <p>I have a input textarea that I am limiting the character count on <em>(done)</em> that I also want to provide visual feedback for regarding how many characters are remaining.  Here's my textarea:</p>
  <blockquote>
  <p><code>&lt;textarea type=&quot;text&quot; name=&quot;TheNameOfMyField&quot; class=&quot;TheNameOfMyClass&quot; value=&quot;&quot; rows=&quot;2&quot; maxlength=&quot;255&quot;&gt;&lt;/textarea&gt;</code></p>
  </blockquote>
  <p>I could do this in .js, no problem, but this case calls for a native solution &amp; as much as I'd love 'the answer,' a finger pointed to resources that would enable me to ask fewer questions is equally welcome - just not the official MS documentation, I need it written at a level a UI developer working in a new environment can understand ::grin::</p>
  <p>Also, if someone wanted to weigh-in on Blazor UI frameworks <em>(in so much that they may be able to help automate tasks like this one - it's the first one I could not locate at least a partial answer to online)</em>, I have the budget to buy into one, but I do not have the time to test several, so I am currently going without <em>(no contacts working in Blazor, everyone I know is C++, .JS, PHP, etc.)</em>.</p>
  <p>In case I wasn't clear enough as to my objective, this isn't me <em>(it's .js &amp; I need a c# Blazor solution)</em>, but conceptually it's pretty close <em>(except I'll be limiting the number of chars in the field, so no negative numbers)</em>:</p>
  <blockquote>
  <p><a href="https://www.itrelease.com/2011/05/count-characters-in-text-area-using-javascript/%27" rel="nofollow noreferrer">https://www.itrelease.com/2011/05/count-characters-in-text-area-using-javascript/'</a></p>
  </blockquote>
  <p>Cheers!</p>