Well I tried your pretty code, and that is much easier, thanks for the tip, but it didn't work, like I said, its a mystery, it works for item1 and item2 -- go check it out but when its gets to item3 --nothing..frustrating, cause its exactly the same, I literally copied and pasted the else if I made for item2 and just changed the numbers..nothing..the same it should work..annoying..you figure out whats wrong? It is because you have nested all of your IF statements.
Remove the And your right it does...thank you so much, I got thrown off because when I edited the script from a differnt one I have used before for a simpler form, i left out an else..it didn't work..I assumed I needed elses everywhere but now it kind of makes sense.
The server would then need to send all the data back to the client and request that the form be resubmitted with the correct information.
The following function would work for that purpose, just pass the value in the textbox to the function to verify if all are numbers.
thank you so much for the phone validation, I will try it out right now.
Using client side Java Script is an efficient way to validate the user input in web forms.
When there are many fields in the form, the Java Script validation becomes too complex.
ok now i want to validate that if the drop box has a value other than blank, i want to check its corresponding quantity, if the quantity is blank then I want it to say 'please enter a quantity on Item -" here is the drop down boxes with the quantitys But if you also want to verify that it is a number and not any other character.