How to apply groupname to HTML radio buttons in asp.net? -


can please tell how apply group name html (input) radio button controls can select 1 of available radio buttons?

i have input radios in table. each row contains 2 radios follows. want select 1 each row. able select 1 radio button amongst radio buttons present on rows.

<input name="radiobutton" type="radio" value="radiobutton" />option1 <input name="radiobutton" type="radio" value="radiobutton" />option2 

what change have make select 1 radio button on each row?

thanks, ~kaps

as far know, radiobuttons in html not have group names. html "name" attribute is group name.

it important verify each radiobutton has unique "value" attribute. otherwise there no way tell of duplicate values selected:

<input name="radiobutton" type="radio" value="radiobutton1" />option1  <input name="radiobutton" type="radio" value="radiobutton2" />option2  

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -