0 Replies Latest reply: Apr 30, 2009 3:28 AM by 807575 RSS

    problem with key validation

    807575
      in Sun Java Studio Creator 2 Update 1 in jsp i'm writting script for key validation
      function function2() {
      x = event.keyCode;
                if ((x>=48) && (x<=57) || (x==16) || (x==37) || (x==39) || (x==8) || (x==46)){return true};
      return false;
           }
      but there are error:
      the entity must immediately follow the '& in the entity reference'
      whats problem? any one can help me?