Here is a fiddle http://jsfiddle.net/aLr2yx8d/
$('#inputButton').click(function() {
var value = $('#input').val();
var re = /\./g;
var output = $('#output');
var text = output.text().replace(re, value);
output.html(text);
});
Now I can only update it once. I want to have the possibility to update it more than once. The first time it will replace the dot (.) and the second time it has to replace the first value I gave.