[SWLUG] Populating radio buttons
Julian Hall
lists at kaotic.co.uk
Fri Jun 23 12:35:47 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Neil Jones wrote:
> This is a simple one I'm sure but it is driving me crazy that I can't
> remember how to do it.
>
> I have a series of radio buttons on a form. I want to have them come up
> set so that I can unset the ones that are not relevant to me.
>
> How do I prepopulate them as set.
Hi Neil,
Radio buttons can only be set one at a time within the same set. I'm
assuming you mean you want the defaults for each set to be for you.
http://www.2kweb.net/html-tutorial/forms/radio/index.html
The syntax is <input type="radio" name="whatever" value="whatever"
checked> for each one you want pre-selected.
Kind regards,
Julian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEm+Ajjs/5IBdCO1ERAgJNAJ47mqP803wHAU7Z2wbGM+y9xkzD8QCgiA4e
iH0o+mR5C/UsdPnr3UgXR20=
=++CX
-----END PGP SIGNATURE-----
More information about the Swlug
mailing list