title: Javascript OnSubmit won't change the form's action
body: <p>EDIT: Resolved. I didn't add quotations!</p>
  <p>I am trying to update a form's action depending on the value inside a select box using JavaScript.</p>
  <p>So far I have:</p>
  <pre><code>&lt;form name=&quot;newStudent&quot; method=&quot;POST&quot; onsubmit=newStudent.action = document.newStudent.proceed.value&gt;
  </code></pre>
  <p>and further down in my code:</p>
  <pre><code>&lt;select name=&quot;proceed&quot;&gt;
  &lt;option value=&quot;newSchedule.php&quot;&gt;add student's schedule&lt;/option&gt;
  &lt;option value=&quot;newStudent.php&quot;&gt;add another student&lt;/option&gt;
  &lt;option value=&quot;staff.php&quot;&gt;staff page&lt;/option&gt;;
  </code></pre>
  <p>Nothing happens when the submit button is pressed. What am I doing wrong?
  The current page is newStudent.php so the form <strong>should</strong> redirect to newSchedule.php since it is selected.</p>