[Solved] How to do the same in JavaScript? [closed]
If you want Vanilla JavaScript solution you can try this: function startCalc() { var root = document.documentElement || document.body; root.addEventListener(‘blur’, function(e) { var node = e.target; if (node.nodeName == ‘input’ && node.getAttribute(‘type’) == ‘text’) { var imekontrolebase = node.getAttribute(‘id’); var ime = imekontrolebase.substr(12, imekontrolebase.length); var n = ime.indexOf(“_”); var red = ime.substr(n+1); var imekol1 = … Read more