I have an html container button and input for string search.
I want to create HTTP POST request using RESTful. The request needs to contain the data the user inserted in the input.
<div class="search">
<div class="cui__input giant">
<label class="cui__input__label">
Type your search query
</label>
<div>
<input type="button" value="Submit" />
</div>
<input class="cui__input__input" />
</form>
</div>
I can use JavaScript or JQuery.
How do I need to preform the request?