Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. <input type="text" id="box01">
  2. <input type="text" id="box02">
  3.  
  4. var input = document.getElementById("box01", "box02");
  5. input.onkeyup = function() {
  6. input.value = input.value.replace(/.(com|net)/,"");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement