Both switches can be selected.

I have a form with two radio buttons, but you can select both radio buttons,

     <form class="descriptions" id="collection"  method="post" action="">
                          <table width="200">
                              <tr>
                                <td>
                                  <label>Collection</label>
                                  <input type="radio" value="collection" />
                                </td>
                                <td>
                                  <label>Delivery</label>
                                  <input type="radio" value="delivery"    />
                                </td>  
                            </tr>
                         </table>

                </form>

I know this is very easy, but I can not find the answer, any help would be appreciated.

+5
source share
2 answers

Give them the same name.

+20
source

Description of switch control type in HTML 4.01 specification :

Radio buttons are similar to flags, except that when several share the same control name , they are mutually exclusive: when you switch "on", all others with the same name are turned off.

+5
source

All Articles