I want to change the number format with (,
) in thousands, for example 2000 to 2,000 20000 to 20,000 and so on.
I have tried to browse and I found a suitable library that is cleave.js,
but there is one problem in this library which is that I can only recognize one selector, while there are lots of input texts that I want to change, does anyone have another solution?
var cleave = new Cleave('.loan_max_amount', {
numeral: true,
numeralThousandsGroupStyle: 'thousand'
});