I've a form in my Yii2 application. I'm using Kartik\form\activeFor.
This is a little view of my form
And this is the code
'jumlahBruto' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Nilai Total Bruto...'];
How do I can set the data in text field has a dot like this
Thanks.
Here is your code for masking
This will solve your problem.
EDIT
As mentioned in documentation, in modal dom is already not loaded.
You need to explicitely call input mask for dynamically loaded elements.
as per author of inputmask here is the link.