SyntaxFix
Write A Post
Hire A Developer
Questions
You can use JavaScript functions like replace, and you can wrap the jQuery code in brackets:
var value = ($("#text").val()).replace(".", ":");