Company Name special characters js validation

This commit is contained in:
Ravi Dey 2011-07-14 17:45:04 +05:30
parent 446e138867
commit 459805fadd

View File

@ -3,7 +3,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
}
cur_frm.cscript.has_special_chars = function(t) {
var iChars = "!@#$%^&*+=-[]\\\';,/{}|\":<>?";
var iChars = "!@#$%^*+=-[]\\\';,/{}|\":<>?";
for (var i = 0; i < t.length; i++) {
if (iChars.indexOf(t.charAt(i)) != -1) {
return true;