I need to change the form action depending on which radio button is selected. The catch here is that the form action is using mailto: with an encoding type. I can successfully change the action, but it does not retain the enctype, therefore it does not post the form to the email client. Really all I want to change is the subject part of the mailto line.

So I have 3 different options for the action line, depending on which is selected for the radio button, that is the one that will submit and create a customized subject line:

<form method="post" action="mailto:mail@mail.com?subject=Subject1" enctype="text/plain" name="Subject1">

<form method="post" action="mailto:mail@mail.com?subject=Subject2" enctype="text/plain" name="Subject2">

<form method="post" action="mailto:mail@mail.com?subject=Subject3" enctype="text/plain" name="Subject3">

Best way to handle this with javascript?