Fungsi HTML Call JavaScript dengan nilai input

<button class="btn btn-primary" onclick="transmit({search: document.getElementById('search_id').value});">
	<span class="glyphicon glyphicon-search"></span>
</button>
Harveyhase68