javascript to select other field: using onchange and onkeyup is better.

This commit is contained in:
2018-02-21 16:36:57 +01:00
parent f85683d0ac
commit 8a647dd41b

View File

@@ -7,6 +7,7 @@
for(var i = 0 ; i < other_inputs.length ; i++) {
(function(other_input) {
other_input.onchange = function() { select_other_handler(other_input.name); };
other_input.onkeyup = function() { select_other_handler(other_input.name); };
})(other_inputs[i]);
}
}