I need to do a validation on a text box for the range from
A to F plus characters ()-*/+
This is what I have tried
Thanks in advance.
A to F plus characters ()-*/+
This is what I have tried
Code:
function ValidFormula(obj){
var Formula = /^[a-fA-F][\-\(\)\*\/\+]$/
if (Formula.test(obj)) {
alert("VALID Formula");
} else {
alert("INVALID Formula");
}
}
Thanks in advance.