Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="text" id="box01">
- <input type="text" id="box02">
- var input = document.getElementById("box01", "box02");
- input.onkeyup = function() {
- input.value = input.value.replace(/.(com|net)/,"");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement