passing value from radiobutton to JavaScript

Discussion in 'ASP .Net' started by Larry, Mar 23, 2007.

  1. Larry

    Larry Guest

    anyone have an example of passing a value from a radio button to a
    JavaScript function in ASP.net?

    <input type="radio" value="text_play" name="play_type" checked="checked"
    />

    this is the type of radio button.

    *** Sent via Developersdex http://www.developersdex.com ***
     
    Larry, Mar 23, 2007
    #1
    1. Advertising

  2. On Mar 23, 6:09 pm, Larry <> wrote:
    > anyone have an example of passing a value from a radio button to a
    > JavaScript function in ASP.net?
    >
    > <input type="radio" value="text_play" name="play_type" checked="checked"
    > />
    >
    > this is the type of radio button.
    >


    To a javascript:

    <script language="javascript">
    var myval = document.all.play_type;
    </script>
     
    Alexey Smirnov, Mar 23, 2007
    #2
    1. Advertising

  3. Your post isn't entirely clear. Do you want to do this server-side, or
    client-side?
    Peter

    --
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short urls & more: http://ittyurl.net




    "Larry" wrote:

    > anyone have an example of passing a value from a radio button to a
    > JavaScript function in ASP.net?
    >
    > <input type="radio" value="text_play" name="play_type" checked="checked"
    > />
    >
    > this is the type of radio button.
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Mar 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    717
  2. VK
    Replies:
    8
    Views:
    300
  3. Nathan Sokalski
    Replies:
    1
    Views:
    441
    Teemu Keiski
    Nov 11, 2007
  4. lbargers
    Replies:
    0
    Views:
    344
    lbargers
    Mar 10, 2008
  5. mtl_jf

    Get value of radiobutton in a datagrid

    mtl_jf, Jan 13, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    120
    mtl_jf
    Jan 14, 2004
Loading...

Share This Page