Skip to main content

max / makenotwork

274 B · 8 lines History Blame Raw
1 (function() {
2 var dollars = document.getElementById('tier-price-dollars');
3 var cents = document.getElementById('tier-price-cents');
4 dollars.addEventListener('input', function() {
5 cents.value = Math.round(parseFloat(this.value || 0) * 100);
6 });
7 })();
8