[thelist] Hidden Radio button

Andrew Clover and-evolt at doxdesk.com
Wed Jun 22 17:32:18 CDT 2005

Ken Chase <raskenbo at gmail.com> wrote:

> 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?

Not with plain HTML. You could, however, include an extra <input 
type="radio"> with the same 'name' at the end of the form (so as not to 
disturb the tabindex order), and then use CSS (eg. style="display: 
none") to hide the extra 'no selection' radio button from view.

It's better to just detect the 'no selection' situation at the server 
end, however. Assuming you have access to the receiving script.

Andrew Clover
mailto:and at doxdesk.com

More information about the thelist mailing list