Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<input type="text" id="input1" value="20,50" >
<button type='button' onclick="function1()">Click</button>
<script type="text/javascript">
function function1() {
var str1 = document.getElementById("input1").value;
var txt1 = str1.replace(",", ".");
document.getElementById("input1").value = txt1;
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507