CODEDIGEST InstallShield
Home Articles CodeDigest Tutorials InstallShield FAQs
Skip Navigation LinksHome » CodeDigest » Get Selected RadioButtonList value in ASP.Net Using Jquery   You are not logged in.
Search
 

Sponsors
InstallShield
 

Sponsored Links
 

Technologies
 

CodeDigest Navigation
 

Technology News
No News Feeds available at this time.
 

Community News
No News Feeds available at this time.
 
Get Selected RadioButtonList value in ASP.Net Using Jquery
Get Selected RadioButtonList value in ASP.Net Using Jquery
Submitted By Satheesh Babu
On 12/15/2008 5:51:30 AM
Tags: asp.net,CodeDigest,JQuery  

Get Selected RadioButtonList value in ASP.Net Using Jquery

 

The following code snippet will help us to get the selected radio button value using JQuery.

 

<script language="javascript">

        $(document).ready(function() {

            $("#btnSubmit").click(function() {

                alert($("#RadioButtonList1").find("input[@checked]").val());

            });

        });

    </script>

 

<asp:RadioButtonList ID="RadioButtonList1" runat="server">

        <asp:ListItem>1</asp:ListItem>

        <asp:ListItem>2</asp:ListItem>

        <asp:ListItem>3</asp:ListItem>

    </asp:RadioButtonList>

     <input id="btnSubmit" type="button" value="Submit" />

Do you have a working code that can be used by anyone? Submit it here. It may help someone in the community!!