title: add a custom value to end of each menu item with jquery
body: <p>I use jquery to get link of page and add it to cats menu items.
  but it has a problem
  i want to do this
  for example we have this menu</p>
  
  <pre><code>&lt;ul class="nav"&gt;
      &lt;li&gt;&lt;a href="link1"&gt;item 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="link2"&gt;item 2&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="link3"&gt;item 3&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and the page address is <code>example.com/index.php?se1</code>
  now i use jquery to get the value <code>se1</code></p>
  
  <pre><code>var pageurl = $(location).attr('href');
  var regionurl = pageurl.substr(pageurl.indexOf("?") + 1);
  </code></pre>
  
  <p>and it returns <code>se1</code> correctly
  but now i want to add se1 to all href values of links inside my list i try this way but its not work correctly</p>
  
  <pre><code>$(".nav li a").each(function() {
      var catlink = $(".nav li a").attr('href');
      var fullregionurl = catlink + "?" + regionurl;
      $(".nav li a").attr("href",fullregionurl);
  });
  </code></pre>
  
  <p>I want to change links value like this</p>
  
  <pre><code>&lt;ul class="nav"&gt;
      &lt;li&gt;&lt;a href="link1?se1"&gt;item 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="link2?se1"&gt;item 2&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="link3?se1"&gt;item 3&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>help me to solve this
  tnx</p>