i have to allow user to enter only RH factor of blood like -ve,+ve
how to do this in java script. also can i use the same thing in java also?
Please help.
Regards
i have to allow user to enter only RH factor of blood like -ve,+ve
how to do this in java script. also can i use the same thing in java also?
Please help.
Regards
Use regular expression. Its available in java and javascript both.
Check RegEx for Javascript to allow only alphanumeric for better understanding of regex expression.
for +ve and -ve
var regex = /^[-+]+[v]+[e]$/i;
this is working..i just checked..enjoy