Tiny and Powerful Library for limit an entry (text box,input) as number
,string
or more...
- Fast
- Compact
- No dependencies
- Easy using Filters
- Decimal
- !Decimal (a decimal , not empty)
- Integer
- !Integer (a integer , not empty)
- String (any character , no number)
- !String (a string , not empty)
- Alphabet (english,farsi:persian,arabic,china,...)
- !Alphabet (english,farsi:persian,arabic,china,...) not empty!
- Any (any char or empty)
- !Any (any char , not empty)
currently , only work on <input>
tag.
- input
- textarea
- select
Argument Name | Goal |
---|---|
data-filter | Set type of Filter for a tag |
data-filter-lang | Restrict allowed languages (soon) |
To view the full details, run the Example.html file.
Decimal :
<input data-filter="decimal" value="5.64">
Integer :
<input data-filter="integer" value="91">
soon will be complete.
You can choose multiple languages.
Separate them with ,
.
soon will be complete.
FilterInput is licensed under the GNU General Public License.