Block writing symbols in a text input

Block writing symbols in a text input

I would like a script that prevents the writing of symbols for exmpl ($·&#%)


on the following link you can see the example.