change url parameter using jquery
<p>I have this URL</p>

<blockquote>
  <p>/home/tx_besijobs_pi1 <strong>%5Bpointer%5D=1</strong><br>
  &amp;tx_besijobs_pi1%5Bmode%5D=1&amp;cHash=70b49e9ffb83c0fb8010a7220bf4d833</p>
</blockquote>

<p>I need to change the <em>pointer value to '0'</em> on next tab click.</p>

<p>My jquery script is given below</p>

<pre><code> &lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript" src="js/jquery-ui.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript" src="js/jquery.cookies.js"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt;

  var pointer = getUrlVars()["pointer"];

  $(function()
    {
            var cookieName ="stickyTab";

            $( "div.tabbing" ).tabs( {  

                selected: ( $.cookies.get( cookieName ) || 0 ),
                select: function( e, ui )
                    {
                            var id =  $(location).attr("href");
                            $.cookies.set( cookieName, ui.index );
                    }
                } );
    } );


   function getUrlVars()
     {
        var vars = [], hash;
        var hashes = window.location.href.slice(window.location.href.indexOf("?") + 1).split("&amp;");

        for(var i = 0; i &lt; hashes.length; i++)
        {
            hash = hashes[i].split("=");

            if($.inArray(hash[0], vars)&gt;-1)
            {
                vars[hash[0]]+=","+hash[1];
            }
            else
            {
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
        }

        return vars;
    }
</code></pre>

<p> </p>

<p>Since the URL is of the format <strong>tx_besijobs_pi1%5Bpointer%5D=1</strong> .I am not getting pointer value. And I dont know how to set pointer value to 1.</p>
