event change javascript code example
Example 1: javascript add function to onchange event
transport_select.setAttribute("onchange", function(){toggleSelect(transport_select_id);});
// or
transport_select.onchange = function(){toggleSelect(transport_select_id);};
Example 2: javascript input value change
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}