i've auto mask function which is working fine , but on autocomplete by rails , it ignores the zeros after comas , like if i select 50,000 it just accepts 50 ,
function maskme() {
$('.maskme').inputmask('numeric', {
radixPoint: '.',
groupSeparator: ',',
digits: 2,
autoGroup: true,
autoUnmask: true,
rightAlign: false,
oncleared: function () {
// self.Value('');
},
});
}
here is the rails input 've called this in
= f.input :price, label:'Total Rent', required:true,autocomplete: "price", input_html:{class:'maskme', value: "#{unit.market_rent unless unit.nil?}"}