How can i encode my parameters in javascript?
This my function and my parameter called newvalue
<script>
function selectChanged(newvalue)
{
location.href="tester?restid=" + newvalue;
}
</script>
This is how i tried with adeneos suggestion
window.location.href = "tester?restid=" + encodeURIComponent(newvalue);
but this does not work.
This is what i am getting:
tester?restid=38619
This is want i want
tester%3Frestid%3D38619%21