views:

26

answers:

1

So for example I have:

http://www.example.com/index.php#/parameter1=one/parameter2=two/

Now how should I update only the parameter1's value?

+2  A: 
location.href.replace(/#\/parameter1=\w*/, "#/parameter1="+NEW_VALUE)
Lucho
Mike Axiak
Brilliant `replace` is what I need here :D lol I don't know how could I miss it...
CIRK
Mike Axiak
Lucho
Mike Axiak