html arguments code example
Example 1: parameters in javascript
function myFunction(x, y) {
if (y === undefined) {
y = 2;
}
}
Example 2: 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>