Hi all.
Why this script not working?
The error is Object expected in the line:
var new_ = concat(concat(o re,":"), min);
Can you help me?
Why this script not working?
The error is Object expected in the line:
var new_ = concat(concat(o re,":"), min);
Code:
<html>
<head>
<script>
function insertColon(id){
var stringa = document.getElementById(id).value;
var ore = stringa.substr(0,2);
var min = stringa.substr(2,2);
var new_ = concat(concat(ore,":"), min);
document.getElementById(id).value = new_;
}
</script>
</head>
<body>
<input id="testo" type="text" name="ora" size="5" onchange="java-script:insertColon('testo')"/>
</body>
</html>
Comment