I am a newbie to web development.
I have fixed initial url with params.
@url = http://localhost:3000/home/results?utf8=%E2%9C%93&what=&where=&commit=search&property_for=
Now, i want to add params to this url individually, like
@price = something
@bedrooms = something
final url = @url + @price + @bedrooms
How can i get this using javascript??
Can anyone provide reference code or link to understand
try this function
you can pass true, if you dont want any querystring and pass “id=somevalue” to this function to get url along with querystring