Alpine JS

Alpine JS

Content articles for AlpineJS (https://alpinejs.dev) - currently using alpinejs@3.10.3

Replacing oninput with x-mask

Anjanesh LekshminarayananAnjanesh Lekshminarayanan
Nov 30, 20221 min read

Add comma separator to numbers in text fields as an when you type · <input type="text" pattern="[0-9,.]{0,10}"/> Using the mask plugin we can achieve the...

Replacing oninput with x-mask
Show amount of money in Indian rupees as K / Lakhs / Crores