[thelist] javascript and IDs

Scott Wehrenberg swehren at gmail.com
Tue Oct 4 15:49:59 CDT 2005


On 10/4/05, Joshua Olson <joshua at waetech.com> wrote:
> Since you are already duct taping this thing together, I'd be inclined to
> give the input fields a neutral name and then name hidden fields what the
> forms expect.  Rather than change the name on the fly, copy the values of
> the input fields to the hidden fields upon submit.

Even better in my opinion, if it's possible in you situation, is to
handle it server side. Just check the state of the radio button and
redirect them to wherever they shoudl go. That way it'll work even if
they don't have JS.


More information about the thelist mailing list