Ties Pol
Ties Pol
FFilament
Created by Ties Pol on 7/31/2023 in #❓┊help
Textinput masking with alpine not working
The following code gives an error about not able to find $input. This is code from the v3 documentation. What am I doing wrong?
TextInput::make('cardNumber')
->mask(RawJs::make(<<<JS
$input.startsWith('34') || $input.startsWith('37') ? '9999 999999 99999' : '9999 9999 9999 9999'
JS))
TextInput::make('cardNumber')
->mask(RawJs::make(<<<JS
$input.startsWith('34') || $input.startsWith('37') ? '9999 999999 99999' : '9999 9999 9999 9999'
JS))
8 replies