PDA

View Full Version : Validation Check On Text Field


nfpunk
07-08-2004, 09:08 AM
Hey does anyone know what the problem is with http://www.flixon.com/lottery.htm

I had everything working fine earlier but then I added a validation check to see that the numbers are not the same for each line.

I'd be greatful if you could help because it's been troubling me all day. Thanks

coothead
07-08-2004, 11:38 AM
Hi there nfpunk,

just missing an '=' or two here...
if(val==val2 || val==val3) {
alert("Already had that number");
obj.value = "";
obj.focus();
return false;