Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   passing value from radiobutton to JavaScript (http://www.velocityreviews.com/forums/t486640-passing-value-from-radiobutton-to-javascript.html)

Larry 03-23-2007 05:09 PM

passing value from radiobutton to JavaScript
 
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 ***

Alexey Smirnov 03-23-2007 05:20 PM

Re: passing value from radiobutton to JavaScript
 
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>


=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?= 03-23-2007 05:21 PM

RE: passing value from radiobutton to JavaScript
 
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 ***
>



All times are GMT. The time now is 01:11 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.