JSFiddle - React, Tailwind, and code Playground

by Reigel Gallarde

HTML

<input ttype="text" id="text" value="12.22" />

JavaScript

alert($("#text").val().replace(".", ":") );