document.addEventListener('DOMContentLoaded', function () {
const zipInputs = document.querySelectorAll('input.zip-only');
zipInputs.forEach(function (input) {
input.addEventListener('input', function () {
this.value = this.value.replace(/\D/g, '');
});
});
});
--
If you want to link a JavaScript file that resides on another server (similar to
), then please use
the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.
End of comment */