RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

inputmask numericInput Input dinamic jquery #1682

Open rafaelg21 opened 7 years ago

rafaelg21 commented 7 years ago

Good afternoon, greetings. I have a problem with the inputmask numeric and it is the next one.

I have ajax by generating input text which places a class 'price' but when loading the pagna do not exist since the client must create the input when pressing a button. Can be many. But when I generate those input does not work the mask but if I put a static generated input if it works for me. example.

$(".price").inputmask('999999999.99', { numericInput: true,"placeholder": ""});

Code where the dynamic input generates. `function add(){ price = $('#price').val(); var fila='';
fila+='

';
fila+=''; cont++;
$('#details').append(fila);
}`

RobinHerbots commented 7 years ago

@rafaelg21 ,

You need to call the inputmask again for the newly added input or include the inputmask.binding.js