Adding more than one GET value in the href

I got this HTML with several unordered lists.

<ul>
    <h3>Staff</h3>
    <li><a href="?staff=Mike">Mike</a></li>
    <li><a href="?staff=John">John</a></li>
    <li><a href="?staff=Kyle">Kyle</a></li>
</ul>
<ul>
    <h3>Category</h3>
    <li><a href="?category=Food">Food</a></li>
    <li><a href="?category=Sports">Sports</a></li>
    <li><a href="?category=News">News</a></li>
    <li><a href="?category=Games">Games</a></li>
    <li><a href="?category=GIFs">GIFs</a></li>
</ul>

As can be seen, all of them contains with params values in each of its hrefs. My question is: using Javascript, how can I append a new value in a param in the href if one of them are actives in the URL.

IE:
The URL is www.site.com/?category=Food.

So the lists should be valued as:

<ul>
    <h3>Staff</h3>
    <li><a href="?category=Food&staff=Mike">Mike</a></li>
    <li><a href="?category=Food&staff=John">John</a></li>
    <li><a href="?category=Food&staff=Kyle">Kyle</a></li>
</ul>
<ul>
    <h3>Category</h3>
    <li><a href="?category=Food">Food</a></li>
    <li><a href="?category=Food,Sports">Sports</a></li>
    <li><a href="?category=Food,News">News</a></li>
    <li><a href="?category=Food,Games">Games</a></li>
    <li><a href="?category=Food,GIFs">GIFs</a></li>
</ul>

75 thoughts on “Adding more than one GET value in the href”

  1. I believe what you posted was very reasonable. But, what about this?
    what if you composed a catchier title? I ain’t suggesting
    your content is not solid., but suppose you added something that makes
    people desire more? I mean Adding more than one GET value in the href – JavaScript Help is kinda plain. You should glance at Yahoo’s home page and watch
    how they write news headlines to get people to open the links.

    You might add a related video or a pic or two to grab readers interested
    about what you’ve written. In my opinion, it would bring your blog a little bit more interesting. http://www.deinformedvoters.org/hydroxychloroquine

    Reply
  2. Good day I am so delighted I found your webpage, I really found
    you by mistake, while I was looking on Yahoo for something else,
    Anyhow I am here now and would just like to say thanks for a marvelous post
    and a all round entertaining blog (I also love the theme/design), I don’t have time to read it all at the minute but I have
    bookmarked it and also included your RSS feeds, so
    when I have time I will be back to read much more,
    Please do keep up the excellent job.

    Reply
  3. Definitely believe that which you stated. Your favorite justification appeared to be on the net the simplest thing to be aware
    of. I say to you, I definitely get irked while people consider worries that they just do not know about.
    You managed to hit the nail upon the top as well as defined out the
    whole thing without having side effect , people could take a signal.
    Will likely be back to get more. Thanks

    Reply
  4. Hey there! Someone in my Myspace group shared this website with us so I came
    to give it a look. I’m definitely loving the
    information. I’m bookmarking and will be tweeting this to my
    followers! Excellent blog and wonderful design and style.

    Reply
  5. Undeniably consider that that you stated. Your favourite justification appeared to be at the web the easiest
    factor to understand of. I say to you, I definitely get annoyed at the same
    time as other folks consider issues that they just do not realize
    about. You controlled to hit the nail upon the highest as neatly as defined out
    the entire thing with no need side effect , other folks can take a signal.
    Will probably be again to get more. Thank you scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

    Reply
  6. Please let me know if you’re looking for a article writer for your blog.
    You have some really good posts and I believe I would be a good
    asset. If you ever want to take some of the load off,
    I’d really like to write some articles for your blog in exchange for a link
    back to mine. Please send me an email if interested. Many thanks!
    cheap flights http://1704milesapart.tumblr.com/ cheap flights

    Reply
  7. My coder is trying to persuade me to move to .net from PHP.

    I have always disliked the idea because of the costs.

    But he’s tryiong none the less. I’ve been using WordPress on a variety of
    websites for about a year and am concerned about switching
    to another platform. I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress content into it?
    Any help would be greatly appreciated! http://herreramedical.org/sildenafil

    Reply
  8. I was recommended this web site by way of my cousin. I’m not
    sure whether this post is written by way of him as no
    one else know such special approximately my trouble.
    You are amazing! Thanks!

    Reply
  9. Hello There. I discovered your weblog the usage of msn. That is a very neatly written article.
    I will make sure to bookmark it and come back to learn extra of
    your helpful info. Thank you for the post. I will definitely return.

    Reply
  10. hello!,I really like your writing so so much! share we keep up a correspondence
    more approximately your post on AOL? I require a specialist in this space to unravel my problem.

    Maybe that is you! Looking forward to peer you.

    Reply
  11. Wonderful beat ! I would like to apprentice at the same time as you amend your website, how can i subscribe for a weblog site?
    The account aided me a acceptable deal. I had been tiny bit acquainted of this your
    broadcast offered vivid transparent concept

    Reply