Jé, ono to funguje, teďka jsem našel tag onchange tak si to už podle toho upravím. Díky moc
Funkční kod:
<html>
<head>
<title>Disable input - ukázka</title>
<script type="text/javascript">
function disable()
{
if(document.formular.jmeno2.disabled == true)
{
document.formular.jmeno2.disabled = false;
document.formular.adresa2.disabled = false;
}
else
{
document.formular.jmeno2.disabled = true;
document.formular.adresa2.disabled = true;
}
}
</script>
</head>
<body>
<form action="zpracuj.php" method="POST" name="formular">
Fakturační adresa<br>
Jméno: <input name="jmeno"><br>
Adresa: <input name="adresa"><br>
Je doručovací adresa stejná jako fakturační?: <input type="checkbox" name="jestejna" onclick="disable()"><br>
Doručovací adresa<br>
Jméno: <input name="jmeno2"><br>
Adresa: <input name="adresa2"><br>
</form>
</body>
</html>
PS: Za ten tag CODE se omlouvám, mám teď docela naspěch, cca 60 věcí, co je třeba dodělat na eshopu...