0

I have this code:

<div class="divpere" >
   <div class="divfille1" ><label>CIVILITE:</label></div>
      <div class="divfille2" >
         <input type="radio" ID="mademoiselle" runat="server" >Mademoiselle</input>
         <input type="radio" ID="madame" runat="server">Madame</input>
         <input type="radio" ID="monsieur" runat="server">Monsieur</input>
      </div>
   </div>

It's a labale and a list of radio buttons, when i try to check one of this radio button, it still not checked!!

  • What is the reason of this?
  • How can i fix my snippet?
1
  • I'll bet on a css issue. Would be good if you post your css or better make a fiddle.
    – Vel
    Apr 29, 2014 at 12:37

1 Answer 1

3

Demo Fiddle

 <div class="divpere" >
        <div class="divfille1" ><label>CIVILITE:</label></div>
        <div class="divfille2" >
         <input name="samename" type="radio" id="mademoiselle" runat="server" /><label for="mademoiselle"> Mademoiselle</label>
         <input name="samename" type="radio" id="madame" runat="server"/><label for="madame">Madame</label>
         <input name="samename" type="radio" id="monsieur" runat="server"/><label for="monsieur">Monsieur</label>
        </div>
 </div>

You should mention the name attribute for your radio buttons and Don't forget to mention the same name values for all three radio buttons...

1
  • I have the same result even i add name attribute Apr 29, 2014 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.