I am using the jquery validate plugin to validate the Number field in my form.
script to check
NUMBER: {
required: true,
number: true,
minlength: 4,
},
which checks my form field <input name="NUMBER" type="text" id="NUMBER" value="" maxlength="4" >
but I want to include (or allow) the special characters " +", " -" and " ," and the word " NA" in my form field. How can I make this possible? The word " NA" should be checked if it is one, without any other letters or numbers.
Thanks in advance..:)
blasteralfred
source
share