$('input').keyup(function() {
    var dInput = $(this).val().replace(",",".");
    $(this).val(dInput);
});