javascript - validation of radio buttons using groupname -


i have got radiobuttons , put them under group name "membership". can use groupname know whether atleast 1 of radiobutton checked on submit button click?. dont have form name have used master pages.i want reduce number of lines of code. want know if possible. small clue how implement help. thanks

why don't use radiobuttonlist?

<asp:radiobuttonlist id="rbltest" runat="server" repeatlayout="table" repeatcolumns = "3">     <asp:listitem text="test1"></asp:listitem>     <asp:listitem text="test2"></asp:listitem> </asp:radiobuttonlist> 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -