[JS-CSS]Custom input number

NoSmoking

Customisation des éléments input de type number.

Affichage

Structure HTML de base

<div class="custom-input-number">
  <input type="number" min="0" max="100" value="0">
  <div class="input-number-control">
    <span data-action="inc">&#9652;</span>
    <span data-action="dec">&#9662;</span>
  </div>
</div>

CSS appliqué

Script d'initialisation