Numeral Thousands Input
An amount input that adds thousand separators live, via Cleave.js.
Requires Bootstrap 5, Cleave.js. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><script src="https://cdn.jsdelivr.net/npm/cleave.js@1.6.0/dist/cleave.min.js"></script><div class="card border-0 shadow-sm" style="max-width:300px"><div class="card-body"><label class="form-label small fw-semibold">Amount</label><div class="input-group"><span class="input-group-text">$</span><input class="form-control" id="cnInput" placeholder="0"></div></div></div>new Cleave("#cnInput",{numeral:true,numeralThousandsGroupStyle:"thousand"});Free to use.This component uses Bootstrap 5, Cleave.js (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.