Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Prijsfilter met twee grepen New

Price filter for a web shop with a minimum and maximum handle on one track, a bar per price band that shows where the stock sits, and two input fields that follow along. The product count and the button update live. Built on two native range inputs, so arrow keys and screen readers work without extra code; the handles cannot pass each other.

Prijs

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.
<!-- Prijsfilter met twee grepen · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="pds"><div class="pds__in">
<fieldset class="pds__f">
<legend class="pds__lg">Prijs</legend>
<div class="pds__hist" aria-hidden="true"></div>
<div class="pds__rng">
<div class="pds__track" aria-hidden="true"><i class="pds__fill"></i></div>
<input class="pds__r pds__r--min" type="range" min="0" max="3000" step="50" value="400" aria-label="Minimumprijs">
<input class="pds__r pds__r--max" type="range" min="0" max="3000" step="50" value="1800" aria-label="Maximumprijs">
</div>
<div class="pds__nums">
<label class="pds__lab"><span>Van</span><span class="pds__box"><span aria-hidden="true">&euro;</span><input class="pds__n pds__n--min" type="text" inputmode="numeric" value="400" aria-label="Minimumprijs in euro"></span></label>
<label class="pds__lab"><span>Tot</span><span class="pds__box"><span aria-hidden="true">&euro;</span><input class="pds__n pds__n--max" type="text" inputmode="numeric" value="1800" aria-label="Maximumprijs in euro"></span></label>
</div>
</fieldset>
<div class="pds__foot"><p class="pds__out"></p><button class="pds__btn" type="button">Toon fietsen</button></div>
<p class="pds__sr" aria-live="polite"></p>
</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 →