Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add function to onchange event

transport_select.setAttribute("onchange", function(){toggleSelect(transport_select_id);});
// or
transport_select.onchange = function(){toggleSelect(transport_select_id);};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #add #function #onchange #event
ADD COMMENT
Topic
Name
7+6 =