retrieve framestate with jquery
<p>ok so i collect the variable below through javascript.</p>

<pre><code>var frameState = $(this).attr('id');
</code></pre>

<p>I have radio box that chooses no mats or one mat.  When a box is chosen it reloads the page I want to put the variable framestate in the url: Sidenote - the code might not look great here but it all works I just don't know how to append the variable to the url after a radio choice is chosen.   </p>

<pre><code>  &lt;tr&gt;  
     &lt;td&gt;
      No Mats:  &lt;input type="radio" name="mattes-radio" align="middle"&lt;?php if($_GET['mattes'] == 0){ echo 'checked="checked"';} ?&gt; id="mattes-radio-0"&gt; 
     &lt;/td&gt;
     &lt;/tr&gt;  
     &lt;tr&gt;
     &lt;td&gt;
      Single Mat: &lt;input type="radio" name="mattes-radio" &lt;?php if($_GET['mattes'] == 1){ echo 'checked="checked"';} ?&gt; id="mattes-radio-1"&gt; 
     &lt;/td&gt;
      &lt;/tr&gt;


  $('#mattes-radio-0').click(function() {  
window.location = 'index-custom.php?mattes=0'; 
  });        

  $('#mattes-radio-1').click(function() {  
window.location = 'index-custom.php?mattes=1';
</code></pre>
