Validating a text box

Results 1 to 2 of 2

Thread: Validating a text box

  1. #1
    Join Date
    Dec 1969

    Default Validating a text box

    I need to work out whether a text box has the chr "4" or "5" in it. I have got this far<BR><BR>function CheckStatus() {<BR> if (AddCaller.LineNumber == 5 or 6){<BR> alert("No can Do")<BR> AddCaller.LineNumber.focus()<BR> return false<BR> }<BR> return true<BR>}<BR><BR>I need some help

  2. #2
    jason m Guest

    Default RE: Validating a text box

    I think you need to use &#124&#124 instead of or.<BR><BR>I&#039m new to jscript but just had the same problem, I hope this is right and helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts