This is the Linux app named jsInputFormatter whose latest release can be downloaded as jsInputFormatter.js. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named jsInputFormatter with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
SCREENSHOTS
Ad
jsInputFormatter
DESCRIPTION
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 #### #### #### ####
<input id="cartao" type="text" oninput="inputFormatter(event,'#### #### #### ####')"/>
Example 2 - Phone number:
Brazil Phone number (##)*####-####
<input id="phone" type="text" oninput="inputFormatter(event,'(##)*####-####')"/>
Example 3 - Decimal number :
Decimal 0.00
<input id="valor" type="number" oninput="inputDecimalFormatter(event,2)" value='0.00'/>
Features
- input formatter
- format mask
- javascript formatter
Audience
Developers, End Users/Desktop
Programming Language
JavaScript
Categories
This is an application that can also be fetched from https://sourceforge.net/projects/jsinputformatter/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.