JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="1.0" id="txtValue" />
JavaScript
$('#txtValue').change(function () {
var value = $("#txtValue").val();
alert(value.replace(".", ":"));
});
<input type="text" value="1.0" id="txtValue" />
$('#txtValue').change(function () {
var value = $("#txtValue").val();
alert(value.replace(".", ":"));
});