shaz1987
12-09-2006, 10:04 AM
how comes this is notworkign i have tried so many times when it = true why aint it checking the radio box i want please help
if(document.form.pay[1].checked && (E > 0 && E >= 20.00) )
{
var Status = window.confirm("*You are entitled to free delivery would you like Free Delivery* \n\n Your Grand Total is = " + (E));
alert(Status)
if (Status == true)
{
alert("User Select OK");
document.form.pay[0].value.checked = true; // if the click ok check the home deilivery box
}
else if (Status == false)
{
alert("Okay, Your Pizza is Waiting for you For collection\n\n*Please check the Contact page if you are not sure where we are based*");
document.form.totalcost.value = E;
}
}
if(document.form.pay[1].checked && (E > 0 && E >= 20.00) )
{
var Status = window.confirm("*You are entitled to free delivery would you like Free Delivery* \n\n Your Grand Total is = " + (E));
alert(Status)
if (Status == true)
{
alert("User Select OK");
document.form.pay[0].value.checked = true; // if the click ok check the home deilivery box
}
else if (Status == false)
{
alert("Okay, Your Pizza is Waiting for you For collection\n\n*Please check the Contact page if you are not sure where we are based*");
document.form.totalcost.value = E;
}
}