title: jQuery. Get parameter value from URL and check radiobutton
body: <p>I'm trying to automatically check radio buttons basing on parameters' values in URL. These parameters were added into URL after user selected some values and submitted the form on the previous page. On the next page there is a form with the same and some other inputs. What I want to do, is to check the same values, that user have chosen on the previous page for the radios.</p>
  
  <p>Lets say I have this URL for the page two: domain.com/page.html?checkbox-one=1&amp;checkbox-two=0</p>
  
  <p>In this page I have radio inputs:</p>
  
  <pre><code>    &lt;input type="radio" name="checkbox-one" value="0" id="radio1" /&gt;
      &lt;label for="radio1"&gt;Radio#1&lt;/label&gt;
  
      &lt;input type="radio" name="checkbox-one" value="1" id="radio2" /&gt;
      &lt;label for="radio2"&gt;Radio#2&lt;/label&gt;
  
      &lt;input type="radio" name="checkbox-two" value="0" id="radio3" /&gt;
      &lt;label for="radio3"&gt;Radio#3&lt;/label&gt;
  
      &lt;input type="radio" name="checkbox-two" value="1" id="radio4" /&gt;
      &lt;label for="radio4"&gt;Radio#4&lt;/label&gt;
  </code></pre>
  
  <p>In this case I want to see <code>name="checkbox-one" value="1"</code> and <code>name="checkbox-two" value="0"</code> checked.</p>
  
  <p>PHP solution is not desirable, so how do I achieve this with jQuery. Is there way to read URL parameter values and check radio buttons basing on them?</p>
  
  <p>Thank you!</p>