This plugin provider a way to limit an input to either alpha, numeric, alphanumberic. It also has options to control additional characters allowed, not allowed, as well as controlling negative and decimal signs, and cut and paste functionality. This was adapted from the original alphanumeric.js plugin by by Paulo P. Marinas.
See the version list below for details.
Install-Package AlphaNumericPlus -Version 1.0.1
dotnet add package AlphaNumericPlus --version 1.0.1
<PackageReference Include="AlphaNumericPlus" Version="1.0.1" />
paket add AlphaNumericPlus --version 1.0.1
Added support for limiting the digits after a decimal, when onedecimal option is set
digitsafterdecimal - stops the number of digits allowed after decimal place
allow - add excempted characters to the rule of prevention
ichars - define a custome set of characters to prevent
allcaps - allow only capital letters to be entered
nocaps - allow only lowercase characters to be entered
onedecimal - only allows 1 decimal
allownegative - only allow 1 dash as first char
blockcntlkey - stops control key commands from working
- jQuery (>= 2.0.3)