I have a search button in html and I would like it link to
/home/search/search_term
where the search term is the value entered into the corresponding input element.
Something like
<input id="input_field"> </input>
<button onclick="location.href='home/search/$(input_field).value'">Search</button>
would be ideal.
How can I achieve something like this?