Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > passing value from radiobutton to JavaScript

Reply
Thread Tools

passing value from radiobutton to JavaScript

 
 
Larry
Guest
Posts: n/a
 
      03-23-2007
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 ***
 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-23-2007
On Mar 23, 6:09 pm, Larry <dontspa...@nospamhere.com> 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>

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      03-23-2007
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 ***
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving a radiobutton value within an Item Templete lbargers ASP .Net 0 03-10-2008 09:23 PM
RadioButton and CheckBox Controls: Where is the value attribute? Nathan Sokalski ASP .Net 1 11-11-2007 08:29 AM
setting the selected value of radiobutton list from database value jwright1@mail.com ASP .Net 1 05-14-2006 01:26 AM
Getting value of radiobutton trouble VK Python 8 05-29-2005 09:57 AM
Get value of radiobutton in a datagrid mtl_jf ASP .Net Datagrid Control 1 01-14-2004 03:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57