Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Meegroeiend tekstvak met teller New

Auto-growing textarea with a character counter that turns from grey to amber and red at the limit; past the limit it counts the excess and keeps the button disabled instead of silently cutting text. Uses field-sizing:content (fallback: small JS height sync) and announces thresholds via aria-live.

Demo

Welke ruimtes, ongeveer hoeveel m² en wanneer het klaar moet zijn.

0 / 280

How to use it

  1. Paste the HTML where the forms & inputs should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Meegroeiend tekstvak met teller · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="ttv"><div class="ttv__in">
<div class="ttv__demo" role="group" aria-label="Demo: kies een staat"><span class="ttv__demo-l">Demo</span><button type="button" data-d="bijna">Bijna vol</button><button type="button" data-d="te">Te lang</button><button type="button" data-d="leeg">Leeg</button></div>
<div class="ttv__card">
<label class="ttv__l" for="ttv-t">Omschrijf de klus</label>
<p class="ttv__help" id="ttv-h">Welke ruimtes, ongeveer hoeveel m² en wanneer het klaar moet zijn.</p>
<textarea class="ttv__t" id="ttv-t" rows="2" aria-describedby="ttv-h ttv-c" placeholder="Bijvoorbeeld: woonkamer en gang schilderen, plafond en muren, ongeveer 60 m²"></textarea>
<div class="ttv__meta"><span class="ttv__bar" aria-hidden="true"><i></i></span><span class="ttv__c" id="ttv-c">0 / 280</span></div>
<div class="ttv__act"><button class="ttv__btn" type="button" disabled>Vraag offerte aan</button></div>
<p class="ttv__sr" aria-live="polite"></p>
</div></div></div>
</div>

More forms & inputs

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →