HTML Chamada de função JavaScript com o valor de entrada
<button class="btn btn-primary" onclick="transmit({search: document.getElementById('search_id').value});">
<span class="glyphicon glyphicon-search"></span>
</button>
Harveyhase68