title: How to enable/disable multiple submit buttons on a form depending on selection of a radio button
body: <p>I have a form that lists all the milestones in a project.
  The form has two submit buttons. One displays the tasks in the milestone. The other submit button is supposed to execute a script to generate a burndown chart for the selected button.
  Here is what I want to do</p>
  
  <ol>
  <li>When the page loads and no milestone is selected, both the submit
  buttons are disabled &mdash; This is achieved.</li>
  <li>When the user selects any milestone, both the submit buttons get
  activated - I need help with this. I know how to link enable/disable
  of one submit button with a radio selection. It is the two submit
  buttons I have issues with.</li>
  <li>Depending on which button is pressed, appropriate Python script
  should execute in the background. &mdash; I will work on this once my
  disable buttons issue is done.</li>
  </ol>
  
  <p>At present, when the page loads, both the submit buttons are in disabled state. And even after  I select a milestone, none of them gets enabled. I suspect, it may be because it may be returning an array of submit buttons and may be I need to have logic for the same? Any help is appreciated. Here is the code.</p>
  
  <pre><code>&lt;form action="show_milestone.py" method="POST" name="milestone_form"&gt;
  &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;
      &lt;td&gt;Milestone ID&lt;/td&gt;
      &lt;td&gt;Milestone Name&lt;/td&gt;
      &lt;td&gt;Milestone Start Date&lt;/td&gt;
      &lt;td&gt;Milestone End Date&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;input type="radio" name="milestone_id" value="1" onclick="javascript:document.milestone_form.submit.disabled=false"&gt; 1&lt;br&gt;&lt;/td&gt;
      &lt;td&gt;milestone_1&lt;/td&gt;
      &lt;td&gt;03/24/2012&lt;/td&gt;
      &lt;td&gt;04/07/2012&lt;/td&gt;
  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
  &lt;p&gt;&lt;/p&gt;
  &lt;input type="submit" name="submit" value="Show Tasks" disabled=""&gt;
  &lt;input type="submit" name="submit" value="Get Burndown Chart" disabled=""&gt;
  &lt;/form&gt;
  </code></pre>