Po wpisaniu tego co pan up - działa to tak, że na początku blokuje tylko 1 button, a po zaznaczeniu checka i odznaczeniu już 2 buttony... jednak musi od razu blokować 2
teraz kod wygląda tak:
teraz kod wygląda tak:
Kod:
<body onload="document.getElementById('a').disabled = true">
<body onload="document.getElementById('b').disabled = true">
Tu jest jakiś regulamin ...
<form method="POST" action="index.html"> <center>
<p><input type="checkbox" id="C1" name="C1" value="ON" onchange="document.getElementById('a').disabled=checked?false:true; document.getElementById('b').disabled=checked?false:true">
<label for="C1">akceptuję regulamin</label></p>
<input type="image" src="images/dodaj.png" value="Wejdź" id="a" name="B1">
<input type="image" src="images/przejdz.png" value="Wejdź" id="b" name="B1">
</form>
</body>