call function in html with value of input code example
Example: html call javascript function with input value
<button class="btn btn-primary" onclick="transmit({search: document.getElementById('search_id').value});">
<span class="glyphicon glyphicon-search"></span>
</button>