quick question here.
I’m looking for a way to populate my JQuery search box, with the value entered in the URL.
So I have a URL that looks something like this :
http://**/pub/3/site/ti/store/mobile/page/productList.page
now if I enter something like this at the end
http://*/pub/3/site/ti/store/mobile/page/productList.page?=brand
I`d like this to appear in my search box. How could I accomplish that ?
Thanks in advance.
You can access
location.search, which does include the?though.http://jsfiddle.net/Y9kdU/