I have something like this :
$(gridId).jqGrid('resetSelection');
in gridId when someone enter value like "Flowsheet 1) test" got syntax error because of ")" characters.
Is there any method on JQuery to handle it?
Thanxs.
I have something like this :
$(gridId).jqGrid('resetSelection');
in gridId when someone enter value like "Flowsheet 1) test" got syntax error because of ")" characters.
Is there any method on JQuery to handle it?
Thanxs.
Use this :
function TestSpecialCharacter(string) {
if (/^[a-zA-Z0-9 ]*$/.test(string) == false) {
return true;
} else {
return false;
}
}
Hope this may useful