[thelist] Hidden Radio button
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Tue Jun 21 15:21:14 CDT 2005
Hi Ken,
How about just giving them an extra button (for the default
value) and checking it by default? If you don't want to show an extra
one, try
<input type="radio" name="qa" value="0" style="display:none;" />
Cheers,
Peter
-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of raskenbo
Hi list.
I've Googled to no avail...
I would like to use a hidden field so that a name/value pair is passed
to the URL even if a user does NOT make a selection.
Is this possible?
My code generates two name/value pairs when a selection IS made.
Sample Code:
<fieldset>
<legend>Question 1</legend>
<input type="hidden" name="qa" value="0"></input>
<input class="radio" id="aa" type="radio" name="qa"
value="1"></input>
<label for="aa">True</label>
<input class="radio" id="ab" type="radio" name="qa"
value="2"></input>
<label for="ab">False</label>
<input class="radio" id="ac" type="radio" name="qa"
value="3"></input>
<label for="ac">True and False</label>
</fieldset>
TIA,
Ken Chase
Freelance Web Design
http://www.kenchase.com
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list