Removes special character
Removes special character
API Declarations
</script>
Rate Removes special character
(1(1 Vote))
function checkforspecialcharacter(a)
{
var ab=a;
for(x=0;x<ab.length;x++)
{
a=ab.charAt(x);
if((a=="!") || (a=="@") || (a=="#") || (a=="$") || (a=="%") || (a=="^") || (a=="&") || (a=="*") || (a=="("))
{
return true;
}
else if ((a==":") || (a==";") || (a=='"') || (a=="'") || (a=="<") || (a==",") || (a==">") || (a=="?") || (a=="/")||(a=="`"))
{
return true;
}
else if((a==="{") || (a==="}") || (a==")") || (a=="_") || (a==".") || (a==="=") || (a=="|") || (a=='[')|| (a=='~')||(a==']'))
{
return true;
}
}
return false;
}
</script>
Removes special character Comments
No comments yet — be the first to post one!
Post a Comment