Print Page | Close Window

Form value and Javascript

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28921
Printed Date: 28 March 2026 at 1:10am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Form value and Javascript
Posted By: dwhite02
Subject: Form value and Javascript
Date Posted: 25 October 2010 at 5:49am
Is there an action that I can use to call a javascript function if a radio button has been selected based on a form value that has been posted to a page?
 
ie:
 
''''''''''''''''
 
<label>
            <input type="radio" name="Q1A" value="Yes" id="Q1A" onclick="setReadOnly1a(this)" <% if request("Q1A") = "Yes" then %>checked="checked" onX?X?="setReadOnly1a(this)" <% end if %> />
            Yes</label>
 
''''''''''''''''''''
 
Thanks



Replies:
Posted By: dwhite02
Date Posted: 27 October 2010 at 3:58am
So I'm assuming this can't be done?


Posted By: WebWiz-Bruce
Date Posted: 27 October 2010 at 11:56am
It can be done, you would use onchange for a radio button, so that when the value is changed it will call the function.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net