Cleave.js: [Question] Is there a way to use the cleave without having an input?

Created on 18 Jul 2018  路  1Comment  路  Source: nosir/cleave.js

I'm using Cleave.js and it works great! :tada:

I have an IBAN number that is being formatted in the input, but it's saved in the database without the spaces. I would like to use cleave to display that IBAN with proper spacing using this string fetched from the database.

Is something like this possible?

Most helpful comment

Hey. Thanks for the like.
Unfortunately no, but I think your requirement is to display formatted data, with any data masking lib or single regex, you wouldn't even need cleave to achieve that.

>All comments

Hey. Thanks for the like.
Unfortunately no, but I think your requirement is to display formatted data, with any data masking lib or single regex, you wouldn't even need cleave to achieve that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

periabyte picture periabyte  路  7Comments

qm3ster picture qm3ster  路  4Comments

vfonic picture vfonic  路  3Comments

dmason30 picture dmason30  路  5Comments

Scit picture Scit  路  4Comments