changing href doesn't work
<p>i like to <strong>add query string dynamically</strong> in in url. the whole table is from
<strong>jquery Datatable</strong></p>

<p>when i change select box(on change) ,
i need to add <strong>this</strong> value to all anchors in td.so i did that, through following code.
when i alert <strong>href</strong> i getting what i want</p>

<blockquote>
  <p>("XXX?YY=YY&amp;bsort=ZZ")</p>
</blockquote>

<p>.
 but the anchor href's doesn't have that (&amp;bsort=XX) query string(checking by fire bug)
whats wrong ?</p>

<p>mycode</p>

<pre><code>$('select[name="category_table_length"]').change(function(){
    var b,href;
    b = $(this).val();
        $('td a').each(function(){
        href = $(this).attr('href');
        href = href+"&amp;bsort="+b; 

        $(this).attr('href',href);
        });
});
</code></pre>
