i like to add query string dynamically in in url. the whole table is from jquery Datatable
when i change select box(on change) , i need to add this value to all anchors in td.so i did that, through following code. when i alert href i getting what i want
("XXX?YY=YY&bsort=ZZ")
. but the anchor href's doesn't have that (&bsort=XX) query string(checking by fire bug) whats wrong ?
mycode
$('select[name="category_table_length"]').change(function(){
var b,href;
b = $(this).val();
$('td a').each(function(){
href = $(this).attr('href');
href = href+"&bsort="+b;
$(this).attr('href',href);
});
});