How to get the search query from jquery
For some reason, I need to force the page to reload. So I need to get the search query in order to rebuild the querystring 'q='. Is there a easy way to get the search query from search box in jquery?
Depending on the options on your SearchBox, you either have an Omnibox or a Querybox. Both of these components support the `getText()` methods:
You should be able to do what you want with either one of those.
Now, why do you need to force the page to reload? :)
var hash = window.location.hash;