Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;html&gt; &lt;head&gt; $(document).ready(function() { $('#submit').click(function(){ var type= $("#type").val(); var height = $("#height").val(); window.location.href = 'http://www.someweb.com/page.php?type='+type+'&amp;&amp;height='+height; }); }); &lt;/head&gt; &lt;body&gt; &lt;form&gt; &lt;p&gt; Type of Terrain: &lt;/p&gt; &lt;select id="type"&gt; &lt;option value="1" id="Street"&gt;Street&lt;/option&gt; &lt;option value="2" id="Dirt"&gt;Dirt&lt;/option&gt; &lt;option value="3" id="Park"&gt;Park&lt;/option&gt; &lt;option value="4" id="Racing"&gt;Racing&lt;/option&gt; &lt;/select&gt; &lt;p&gt;Body Height&lt;/p&gt; &lt;select id="Height"&gt; &lt;option value="1" id="5ft"&gt;5ft&lt;/option&gt; &lt;option value="2" id="5.5ft"&gt;5.5ft&lt;/option&gt; &lt;option value="3" id="6ft"&gt;6ft&lt;/option&gt; &lt;/select&gt; &lt;br /&gt;&lt;br /&gt; &lt;input id="submit" type="submit" value="Submit" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>So, i changed the code above. Let me know if you still hve some questions.</p> <p>PS: normally to redirect or pass values to other pages you would want to use the jquery $.post, $.get or $.ajax methods instead of windows.location.href. </p> <p>Have a look here <a href="http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/" rel="nofollow">http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/</a></p> <p>EDITED - Working solution: <a href="http://jsfiddle.net/YXW7K/13/" rel="nofollow">http://jsfiddle.net/YXW7K/13/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload