New to javascript

if (myForm.qty1.value == “” || myForm.qty2.value == “” || myForm.qty3.value ==“” || myForm.qty4.value ==“” || myForm.qty5.value == “” || myForm.qty6.value ==“”)
{
alert(“Please order at least one item”);

		}

alert shows up even if 1 item ordered, it doesn’t show up it all six boxes are
filled it.

Can you post the corresponding HTML?

The code is testing to see if all six boxes have been filled out and pops up the alert if any one or more of them is empty.

To pop up the alert only if all of them are empty replace each || with &&

thanks so much! Boy I feel like a dummy!!