title: Change form action on drop down selection
body: <p>So I've got myself a form here shown below; I'm trying to change the form's action link based on the selection. However it's not really working for me. </p>
  
  <pre><code>&lt;form action=""&gt;
      &lt;select id="location"&gt;
          &lt;option value="http://www.google.com/php:id=384733"&gt;New York&lt;/option&gt;
          &lt;option value="http://www.google.com/php:id=384734"&gt;Georgia&lt;/option&gt;
      &lt;/select&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  
  
  $("#location").change(function() {
      var action = $(this).val();
          $("form").attr("action")};
      });
  )};
  </code></pre>
  
  <p>There's more then just the two states, I'll have all states but for this example I've listed two. the value would be the url with different ID numbers as shown above. </p>
  
  <p>In the end, if I selected New York the action in the form code would get updated and show something similar to this;</p>
  
  <pre><code>&lt;form action="http://www.google.com/php:id=384733"&gt;
  </code></pre>