jsInputFormatter is a easy way to format HTML inputs with masks.
Syntax:
import the jsInputFormatter.js
set the function below on oninput event to input format.
inputFormatter(event,mask)
event: element input event
mask: String with mask
# - Any valid number
* - Anything
Others characters don't change
inputDecimalFormatter(event,decimal)
event: element input event
decimal: Integer number with decimal
Example 1 - Credit Card:
Credit Card #### #### ####...