title: Different action on submit a form depending on input value
body: <p>I have a basic html form with a search box. depnding if the user inputs searchA or searchA-B, I need to redirect him to two different places (url is formatted differently).</p>
  
  <p>How would you suggest I do that? </p>
  
  <pre><code>&lt;form name="ajaxSearchFrm" action="url1 or url2 depending on the value of searchText" method="GET"&gt;
          &lt;input type="text" id="searchText" name="searchText" style="width:200px;" onKeyUp="searchSuggest();" autocomplete="off"&gt;&amp;nbsp;&amp;nbsp;
          &lt;input type="submit" value="Search" style="background-color: #fff; font-family: verdana, arial, helvetica; color: black; font-size: 10px;" /&gt;
          &lt;div id="formSuggestLayer"&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>