var inputs = document.getElementsByClassName("input3");for(var i = 0; i < inputs.length; i++){inputs[i].onmouseover = function(){this.select();}}