first of all sorry for my low english..
i have this code:
<input id="id1" type="text"/>
<input id="id2" type="text"/>
 document.getElementById("id1").onkeypress = function(e) {
  var chr = String.fromCharCode(e.which);
  if ("><abc/\"".indexOf(chr) >= 0)
      return false;
};  
How can I choose the second id? Example : id1, id2 i want use this code
Thanks!
 
     
    