I have tried both ways to replace the open and close but having issues. Is there a way where I can replace them both? I want to make it global //g so I can replace all.
If you are wanting to stop users from typing certain stuff. You can create and array of all the stuff you don't want. Then create an eventHandler - onkeyup=checkValue() to the textbox.
In the function checkValue(). Get the length of the array and create a for loop and search() for each one...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.