fungsi 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