bonjour ,
j'ai un petit prob pour verifier si un radio button est checked ou pas avec javascript .
voici mon code asp :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<asp:RadioButtonList ID="format_vis" runat="server" Width="82px">
<asp:ListItem value="Image"  />
<asp:ListItem value="Flash"  />
<asp:ListItem value="Video" />
</asp:RadioButtonList> 
            <asp:CustomValidator ID="CustomValidator4" runat="server"
                ErrorMessage="* Champ Obligatoire" 
            ClientValidationFunction="validate_format" ValidateEmptyText="True" ControlToValidate="format_vis">
            </asp:CustomValidator>
fonction javascript : 
   function validate_format(sender, args)
   {
          var format= document.getElementById("<%= format_vis.ClientID %>"); 
  if(format[2].checked=true )
  { alert("ca marche");
  }
 
      }