title: Prototype Form Submit Validation
body: <p>I have a form with id 'new_profile_choices', and I am using Prototype to validate the form. When I tried to validate the form submit event, it does not seem to handle the event. Could you please help me to debug it. </p>
  
  <p><strong>View Source of the Form</strong></p>
  
  <pre><code>&lt;form action="/polls/vote" class="new_profile_choices" id="new_profile_choices" method="post"&gt;
          &lt;input id="profile_choices_profile_id" name="profile_choices[profile_id]" type="hidden" value="2" /&gt;
          &lt;input id="profile_choices_poll_id" name="profile_choices[poll_id]" type="hidden" value="50" /&gt;
          &lt;div id="poll_error_messages"&gt;
              &lt;p&gt;Please select a valid vote&lt;/p&gt;
          &lt;/div&gt;
          &lt;p&gt;
              &lt;p class="choice"&gt;
              &lt;input id="profile_choices_choice_id_80" name="profile_choices[choice_id]" type="radio" value="80" /&gt;Yes
              &lt;/p&gt;
              &lt;p class="choice"&gt;
              &lt;input id="profile_choices_choice_id_81" name="profile_choices[choice_id]" type="radio" value="81" /&gt;No
              &lt;/p&gt;
              &lt;p class="choice"&gt;
              &lt;input id="profile_choices_choice_id_82" name="profile_choices[choice_id]" type="radio" value="82" /&gt;Can't Say
              &lt;/p&gt;
              &lt;/p&gt;
              &lt;input class="r4corners" id="profile_choices_submit" name="commit" type="submit" value="   Vote   " /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Prototype Event Handler</strong></p>
  
  <pre><code>$('new_profile_choices').observe("submit", function(event){
   alert("form submission");
  }
  </code></pre>