So I have a URL like:
www.site.com/nice.html?menu=1
and I'm trying to find all links inside a div called.. ".page" and add "&menu=1" to them based on the menu parameter inside the url string.
I hope this makes sense. I'm going to create a jsfiddle.
Here is my JS so far.
$(".page a").each( function(){
//get page param with getmenu
var getmenu = "";
var attr = $(this).attr("href");
attr+"&menu="+getmenu;
});