| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 
 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
<script type="text/javascript">
function $(id) {
	return document.getElementById(id);
} 
function activepaiement() {
	$("cb").disabled=$("paiement").checked==false;
	$("cheque").disabled=$("paiement").checked==false;
	$("mandat").disabled=$("paiement").checked==false;
}
function validpaiement() {
	if (($("paiement").checked==true) && !(($("cb").checked||$("cheque").checked||$("mandat").checked)==true) ) {
		alert("merci de selectionner votre paiement");
		return false;
	}
	return true;
}
window.onload=function() {
	activepaiement();
}
</script>
</head>
<body>
 
<form action="" method="post" enctype="application/x-www-form-urlencoded" name="forms" >
	<table>
		<tr>
			<td>
	<input type="checkbox" name="paiement" id="paiement" onclick="activepaiement()" /></td><td> Je désire régler maintenant</td>
		</tr>
		<tr>
			<td><input type="radio" name="mode" id="cb"  /> Carte bancaire</td>
		</tr>
		<tr>
			<td><input type="radio" name="mode" id="cheque"  />Chèque</td>
		</tr>
		<tr>
			<td><input type="radio" name="mode" id="mandat"  />Mandat</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:center">
			<input type="submit" value="valider" onclick="validpaiement()">
			</td>
		</tr>
	</table>
</form>
</body>
</html> | 
Partager