title: How to set a select option to change the form action
body: <p>I'm trying the make a drop down selection, change the form action, which will take the user to a different link when submitted.</p>
  
  <p>Ive tried what I think should work but have not been able to, any help on what I have done wrong here would be appreciated greatly.</p>
  
  <p><strong>js</strong></p>
  
  <pre><code>$("#time-select").change(function() {
  
    if (document.getElementById("time-select").value != "WEEK")
    { 
      document.getElementById("subs-form").setAttribute("action", "A");
    }
  
    else (document.getElementById("time-select").value != "FORTNIGHT")
    { 
      document.getElementById("subs-form").setAttribute("action", "B" );
    }
  
    else (document.getElementById("time-select").value != "MONTH")
    { 
      document.getElementById("subs-form").setAttribute("action", "C" );
    }
  
  }
  </code></pre>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;div class="wrapper"&gt;                              
   &lt;form name="linkForm" id="subs-form" action="" method="GET" &gt;
  
     &lt;select id="time-select" &gt;
      &lt;option value="WEEK" selected&gt;1 BAG A WEEK&lt;/option&gt;
      &lt;option value="FORTNIGHT"&gt;1 BAG A FORTNIGHT&lt;/option&gt;
      &lt;option value="MONTH"&gt;1 BAG A MONTH&lt;/option&gt;
     &lt;/select&gt;
  
      &lt;input id="subs-submit" type="submit" value="Subscibe"&gt;
  
   &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>