var elements = document.querySelectorAll('.currency, .excludeCurrency');
elements.forEach((item) => {
new AutoNumeric(item, { allowDecimalPadding: "floats", modifyValueOnWheel: false });
});
solved Conversion of jQuery code into Vanilla Javascript [closed]