File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes get radio button checked value from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "get radio button checked value from javascript" Watch "get radio button checked value from javascript" New topic
Author

get radio button checked value from javascript

Li Jenny
Ranch Hand

Joined: Apr 19, 2010
Posts: 57
if i have create radiobutton in aspx file
how can i get the checked value of this radiobutton in javascript

<asp:radiobuttonlist id="radio1" RepeatDirection="horizontal" runat="server">

<asp:listitem runat="server" value="AA" Text="Text" Selected />

<asp:listitem runat="server" value="Filter" Text="BB" />



</asp:radiobuttonlist>
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Brave asking a .NET question on a Java forum.



Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Please do not post server-side markup in this forum. Thanks.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: get radio button checked value from javascript