js add event listener onchange 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: addeventlistener js select item
selectId.addEventListener("change", function() {
});