Hi,
Below is the code, when I run it in IE the submit button does nothing? thanks, copy it into Notepad and rename as html and open in IE to try yourself :->
<html>
<head>
<title>Purchase Order</title>
</head>
<script language="javascript">
<!--hide from incompatible browsers
function recordPaymentMethod(paymentMethod, value){
if(paymentMethod=="Visa")
document.paymentMethod.selection1.value==paymentMethod;
else if(paymentMethod=="MasterCard")
document.paymentMethod.selection2.value==paymentMethod;
else if(payentMethod=="AmericanExpress")
document.paymentMethod.sleection2.value==paymentMethod;
}
function submit() {
if(document.paymentMethod.selection1.value==""||docuemnt.paymentMethod.selection2.value==""||document.paymentMethod.selection3.value==""){
alert("Please select payment method");
return false
}
}
//stop hiding from incompatible browsers-->
</script>
</head>
<body>
<form name=paymentMethod onclick=return recordPaymentMethod();">
<p>Payment Method?
<input type="radio" name="selection1" value="Visa"(1,this.value)";>Visa
<input type="radio" name="selection2" value="MasterCard"(1,this.value)";>Master Card
<input type="radio" name="selection3" value="AmericanExpress"(1,this.value)";>American Express
</p>
<p>
<form name="submit" onClick return="submit();">
<input type="button" name="Submit Order" value="Submit Order"();>
</p>
</body>
</html>
Below is the code, when I run it in IE the submit button does nothing? thanks, copy it into Notepad and rename as html and open in IE to try yourself :->
<html>
<head>
<title>Purchase Order</title>
</head>
<script language="javascript">
<!--hide from incompatible browsers
function recordPaymentMethod(paymentMethod, value){
if(paymentMethod=="Visa")
document.paymentMethod.selection1.value==paymentMethod;
else if(paymentMethod=="MasterCard")
document.paymentMethod.selection2.value==paymentMethod;
else if(payentMethod=="AmericanExpress")
document.paymentMethod.sleection2.value==paymentMethod;
}
function submit() {
if(document.paymentMethod.selection1.value==""||docuemnt.paymentMethod.selection2.value==""||document.paymentMethod.selection3.value==""){
alert("Please select payment method");
return false
}
}
//stop hiding from incompatible browsers-->
</script>
</head>
<body>
<form name=paymentMethod onclick=return recordPaymentMethod();">
<p>Payment Method?
<input type="radio" name="selection1" value="Visa"(1,this.value)";>Visa
<input type="radio" name="selection2" value="MasterCard"(1,this.value)";>Master Card
<input type="radio" name="selection3" value="AmericanExpress"(1,this.value)";>American Express
</p>
<p>
<form name="submit" onClick return="submit();">
<input type="button" name="Submit Order" value="Submit Order"();>
</p>
</body>
</html>