J'ai beau cherché (je cherche probablement mal) mais je n'arrive pas à récupérer la valeur d'un bouton radio dans un groupe.
Il me semble pourtant avoir la bonne syntaxe...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
<script>
function sexy(){
alert(document.myform.sexe.value);
}
</script>
</head>
<body>
<form action="" method="post" name="myform">
<p>
<label>
<input type="radio" name="sexe" value="homme" id="sexe_0" onclick="sexy();" />
homme</label>
<br />
<label>
<input type="radio" name="sexe" value="femme" id="sexe_1" onclick="sexy();" />
femme</label>
</p>
<p><br />
</p>
</form>
</body>
</html>L'idée étant de dire, si bouton = homme alors ceci et si bouton = femme alors celaMerci de votre aide.
F69