Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2003, 04:33 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default variable value field?

I have the following code

<input type=hidden name="required" value="a:a is required,b:b is required,c:c is required">

What I would like to do is if a certain radio button later in the form has been clicked "Yes" to a question the code stays as is...if the radio button has been clicked No, the line would now be value="a:a is required,b:b is required, c:c is required,d:d is required". Is this possible? I guess in other words I'd like the "value" set to be variable depending upon the response.

Thanks,
Ron

 
Old October 19th, 2003, 04:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Is this possible: YES!

This is actually a question of client side scripting, and as such belonging in a javascript or vbscript forum, but if you post some code here, I'll have a go at it...






Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable used in recordset field name the4barkersab Access VBA 1 February 24th, 2008 04:18 PM
Variable field name stealthdevil Access VBA 4 January 31st, 2007 12:24 PM
Select a field on a form, based on variable JAnthony Access VBA 2 April 17th, 2006 11:16 AM
Variable Recordset Field Name Codesucks VB Databases Basics 6 June 1st, 2004 07:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.