thanks for your feedback..but actually i want if i write these lines
var specialkeys=new Array();
specialkeys.push(8);//backspace
specialkeys(35);//#
specialkeys.push(37)//%
then those character will be disallow all other special character will be all right
do u understand my requirement its totally reverse from what u did?
is it possible change the funcion to work such requirement?