Bonjour à vous rois du javascript,
Je cherche à écrire un script qui rend n'active un champ select que si une checkbox associée est cochée.
Le script suivant ne marche pas... Qu'en pensez-vous ?
Merci de votre aide
<html>
<head>
<script language="javascript">
function blur()
{
if(choix2.checked)
{
lien2.disabled = true;
}
else
{
lien2.disabled = false;
}
}
</script>
</head>
<body>
<form>
<input type="checkbox" name="choix2" onClick="blur()">
<select name="lien2"><option>ET</option><option>OU</option></select>
</form>
</html>


