var mylink = "mens-shirts.new-arrivals";
I just need to able to replace what comes after the "." with something else. eg. I want to end up with mylink being "mens-shirts.price-high-low" or "mens-shirts.-a-z and so on.
So just a generic function where I can input the new value each time.
Thanks very much